ClaudiaRojasSoto / Catalog_Of_My_Things

Console-based application built in Ruby, designed to keep an organized record of your possessions across different categories. This app provides a simple and user-friendly interface to manage your personal items efficiently.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[3pt] Team member #2 - Task 3 - Implement Methods in Genre & MusicAlbum Class

ClaudiaRojasSoto opened this issue · comments

  • Implement methods:
  1. add_item method in the Genre class

    • Should take an instance of the Item class as an input
    • Should add the input item to the collection of items
    • Should add self as a property of the item object (by using the correct setter from the item object)
  2. can_be_archived?() in the MusicAlbum class

    • Should override the method from the parent class
    • Should return true if the parent's method returns true AND if on_spotify equals true
    • Otherwise, it should return false