Class: LunchMoney::Objects::RecurringExpenseBase

Inherits:
Object
  • Object
show all
Defined in:
lib/lunchmoney/objects/recurring_expense_base.rb

Overview

Direct Known Subclasses

RecurringExpense

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Object

#serialize

Constructor Details

#initialize(payee:, amount:, currency:, to_base:) ⇒ void

Parameters:

  • payee (String)
  • amount (String)
  • currency (String)
  • to_base (Number, nil)


22
23
24
25
26
27
28
# File 'lib/lunchmoney/objects/recurring_expense_base.rb', line 22

def initialize(payee:, amount:, currency:, to_base:)
  super()
  @payee = payee
  @amount = amount
  @currency = currency
  @to_base = to_base
end

Instance Attribute Details

#amountString

Returns:

  • (String)


9
10
11
# File 'lib/lunchmoney/objects/recurring_expense_base.rb', line 9

def amount
  @amount
end

#currencyString

Returns:

  • (String)


9
10
11
# File 'lib/lunchmoney/objects/recurring_expense_base.rb', line 9

def currency
  @currency
end

#payeeString

Returns:

  • (String)


9
10
11
# File 'lib/lunchmoney/objects/recurring_expense_base.rb', line 9

def payee
  @payee
end

#to_baseNumber?

Returns:



12
13
14
# File 'lib/lunchmoney/objects/recurring_expense_base.rb', line 12

def to_base
  @to_base
end