AlejandroNeira98 / Catalog_MyThings_Ruby

3 stars 0 forks source link

Create MusicAlbum class and override can_be_archived? #59

Closed saadat-ali-awan closed 2 years ago

saadat-ali-awan commented 2 years ago
  1. Create MusicAlbum class in a separate .rb file.
  2. All MusicAlbum class properties visible in the diagram should be defined and set up in the constructor method.
  3. Implement methods:
    • 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