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 #3 - Task 3 - Implement Methods in Author & Game Class

ClaudiaRojasSoto opened this issue · comments

  • Implement methods:

1. add_item method in the Author 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)

1. can_be_archived?() in the Game class

  • Should override the method from the parent class
  • Should return true if the parent's method returns true AND if last_played_at is older than 2 years
  • Otherwise, it should return false