Class: MoneyTracking::Cli::Views::ExpenseNotUpdated
- Inherits:
-
Struct
- Object
- Struct
- MoneyTracking::Cli::Views::ExpenseNotUpdated
- Defined in:
- lib/money_tracking/cli/views/expense_not_updated.rb
Instance Attribute Summary collapse
-
#expense ⇒ Object
Returns the value of attribute expense.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(expense) ⇒ ExpenseNotUpdated
constructor
A new instance of ExpenseNotUpdated.
- #to_s ⇒ Object
Constructor Details
#initialize(expense) ⇒ ExpenseNotUpdated
Returns a new instance of ExpenseNotUpdated.
9 10 11 |
# File 'lib/money_tracking/cli/views/expense_not_updated.rb', line 9 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_updated.rb', line 4 def expense @expense end |
Class Method Details
.not_found ⇒ Object
5 6 7 |
# File 'lib/money_tracking/cli/views/expense_not_updated.rb', line 5 def self.not_found self end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/money_tracking/cli/views/expense_not_updated.rb', line 13 def to_s "Not updated." end |