Class: MoneyTracking::Cli::Views::ExpenseCreated
- Inherits:
-
Struct
- Object
- Struct
- MoneyTracking::Cli::Views::ExpenseCreated
- Defined in:
- lib/money_tracking/cli/views/expense_created.rb
Instance Attribute Summary collapse
-
#expense ⇒ Object
Returns the value of attribute expense.
Instance Method Summary collapse
Instance Attribute Details
#expense ⇒ Object
Returns the value of attribute expense
4 5 6 |
# File 'lib/money_tracking/cli/views/expense_created.rb', line 4 def expense @expense end |
Instance Method Details
#to_s ⇒ Object
5 6 7 |
# File 'lib/money_tracking/cli/views/expense_created.rb', line 5 def to_s "Created new expense with id #{expense[:id]}." end |