Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1pt] Implement all methods visible in the diagram. #2

Closed
tafaramafemba opened this issue Jun 27, 2022 · 0 comments
Closed

[1pt] Implement all methods visible in the diagram. #2

tafaramafemba opened this issue Jun 27, 2022 · 0 comments
Assignees

Comments

@tafaramafemba
Copy link
Owner

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
@dewslyse dewslyse added this to To do in Ruby capstone Jun 27, 2022
@dewslyse dewslyse changed the title Implement all methods visible in the diagram. [1pt] Implement all methods visible in the diagram. Jun 27, 2022
@tafaramafemba tafaramafemba moved this from To do to In progress in Ruby capstone Jun 27, 2022
@tafaramafemba tafaramafemba moved this from In progress to In review in Ruby capstone Jun 27, 2022
@dewslyse dewslyse moved this from In review to Done in Ruby capstone Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

3 participants