All Item class properties visible in the diagram should be defined and set up in the constructor method.
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
Changes to be made;
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