Class: LunchMoney::Objects::RecurringExpenseBase
- Defined in:
- lib/lunchmoney/objects/recurring_expense_base.rb
Overview
Direct Known Subclasses
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#payee ⇒ Object
Returns the value of attribute payee.
-
#to_base ⇒ Object
Returns the value of attribute to_base.
Instance Method Summary collapse
-
#initialize(payee:, amount:, currency:, to_base:) ⇒ RecurringExpenseBase
constructor
A new instance of RecurringExpenseBase.
Methods inherited from Object
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
#amount ⇒ Object
Returns the value of attribute amount.
9 10 11 |
# File 'lib/lunchmoney/objects/recurring_expense_base.rb', line 9 def amount @amount end |
#currency ⇒ Object
Returns the value of attribute currency.
9 10 11 |
# File 'lib/lunchmoney/objects/recurring_expense_base.rb', line 9 def currency @currency end |
#payee ⇒ Object
Returns the value of attribute payee.
9 10 11 |
# File 'lib/lunchmoney/objects/recurring_expense_base.rb', line 9 def payee @payee end |
#to_base ⇒ Object
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 |