In this project, we will create a console app that will help to keep a record of different types of things you own: books, music albums, movies, and games. Everything will be based on the given UML class diagram and the data will be stored in JSON files as well.
Create an Item class in a separate .rb file.
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.
**Hi Dear!
We implemented the following requirements.**
Create an Item class in a separate .rb file. 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.