A console app that allows the user to keep a record of different types of things they owm: books, music albums, movies, and games. The project was created based on a UML class diagram. The data is stored in JSON files.
License: MIT License
Ruby 100.00%
catalog-of-my-things's Introduction
Hi 👋, I'm Matt
A future full-stack developer. Microverse alumni. A forever-curious weirdo.
We assigned ourselves to each task, except for team member#3, because he has not accepted the invitation to the project yet, he is not in the call. But the tasks are assigned like this:
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