Class: MoneyTracking::Cli::Views::ExpenseNotFound

Inherits:
Struct
  • Object
show all
Defined in:
lib/money_tracking/cli/views/expense_not_found.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expense) ⇒ ExpenseNotFound

Returns a new instance of ExpenseNotFound.

Raises:



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

#expenseObject

Returns the value of attribute expense

Returns:

  • (Object)

    the current value of expense



4
5
6
# File 'lib/money_tracking/cli/views/expense_not_found.rb', line 4

def expense
  @expense
end

Instance Method Details

#to_sObject



9
10
11
# File 'lib/money_tracking/cli/views/expense_not_found.rb', line 9

def to_s
  "Not found."
end