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:) ⇒ RecurringExpenseBase

Returns a new instance of RecurringExpenseBase.



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

#amountObject

Returns the value of attribute amount.



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

def amount
  @amount
end

#currencyObject

Returns the value of attribute currency.



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

def currency
  @currency
end

#payeeObject

Returns the value of attribute payee.



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

def payee
  @payee
end

#to_baseObject

Returns the value of attribute to_base.



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

def to_base
  @to_base
end