ClaudiaRojasSoto / Catalog_Of_My_Things

Console-based application built in Ruby, designed to keep an organized record of your possessions across different categories. This app provides a simple and user-friendly interface to manage your personal items efficiently.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[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