laiifuu/Things-Catalog

[2pt] - Create the GameClass

Opened this issue · 0 comments

  • Create a Game class in a separate .rb file.
  • All Game class properties visible in the diagram should be defined and set up in the constructor method.
  • can_be_archived?() in the Game class
    • should override the method from the parent class
    • should return true if parent's method returns true AND if last_played_at is older than 2 years
    • otherwise, it should return false