ahmed025566 / Catalog_of_my_things

MIT License
0 stars 0 forks source link

[1pt] Create a Book class in a separate .rb file. #2

Open ahmed025566 opened 1 year ago

ahmed025566 commented 1 year ago

All Book class properties visible in the diagram should be defined and set up in the constructor method. Implement method: can_be_archived?() should override the method from the parent class should return true if parent's method returns true OR if cover_state equals to "bad" otherwise, it should return false. Add unit tests for all implemented methods.