Class: MoneyTracking::Cli::Views::ExpenseNotFound
- Inherits:
-
Struct
- Object
- Struct
- MoneyTracking::Cli::Views::ExpenseNotFound
- Defined in:
- lib/money_tracking/cli/views/expense_not_found.rb
Instance Attribute Summary collapse
-
#expense ⇒ Object
Returns the value of attribute expense.
Instance Method Summary collapse
-
#initialize(expense) ⇒ ExpenseNotFound
constructor
A new instance of ExpenseNotFound.
- #to_s ⇒ Object
Constructor Details
#initialize(expense) ⇒ ExpenseNotFound
Returns a new instance of ExpenseNotFound.
5 6 7 |
# File 'lib/money_tracking/cli/views/expense_not_found.rb', line 5 def initialize(expense) raise Error.new(self) end |
Instance Attribute Details
#expense ⇒ Object
Returns the value of attribute expense
4 5 6 |
# File 'lib/money_tracking/cli/views/expense_not_found.rb', line 4 def expense @expense end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/money_tracking/cli/views/expense_not_found.rb', line 9 def to_s "Not found." end |