Catalog Of My Things is a command-line interface (CLI) application designed for users to conveniently manage their collections of books, music albums, movies, and games. This easy-to-use app stores data in JSON files, allowing users to easily add, delete, and update information about their personal belongings all in one place.
All Item class properties visible in the diagram should be defined and set up in the constructor method. Exception: properties for the 1-to-many relationships should NOT be set in the constructor method. Instead, they should have a custom setter method created.
Add all methods visible in the diagram.
Implement methods:
can_be_archived?() in the Item class
should return true if published_date is older than 10 years
otherwise, it should return false
move_to_archive() in the Item class
should reuse can_be_archived?() method
should change the archived property to true if the result of the can_be_archived?() method is true
should do nothing if the result of the can_be_archived?() method is false
Create a main.rb file that will serve as your console app entry-point.
Implement startup actions:
Present the user with a list of options to perform.