adeola003 / my_things_ruby_capstone

MIT License
3 stars 1 forks source link

[1pt] Add all methods visible in the diagram (group task). #3

Closed adeola003 closed 1 year ago

adeola003 commented 1 year ago

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