[3pts] Group task #2 - Add all methods visible in the diagram
ClaudiaRojasSoto opened this issue · comments
-
Add all methods visible in the diagram
-
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
-
-