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

[1.5pt]Implement methods for the item class - group task #23

Open
OLIPLICHE opened this issue Nov 29, 2021 · 0 comments
Open

[1.5pt]Implement methods for the item class - group task #23

OLIPLICHE opened this issue Nov 29, 2021 · 0 comments
Assignees

Comments

@OLIPLICHE
Copy link
Collaborator

OLIPLICHE commented Nov 29, 2021

  • can_be_archived?() in the Item class
  1. should return true if published_date is older than 10 years
  2. otherwise, it should return false
  • move_to_archive() in the Item class
  1. should reuse can_be_archived?() method
  2. should change the archived property to true if the result of the can_be_archived?() method is true
  3. should do nothing if the result of the can_be_archived?() method is false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants