Class: LunchMoney::Objects::TransactionModificationBase
- Defined in:
- lib/lunchmoney/objects/transaction_modification_base.rb
Overview
Base object used for transaction objects that are used to update transactions https://lunchmoney.dev/#update-transaction
Direct Known Subclasses
Instance Attribute Summary collapse
-
#category_id ⇒ Object
Returns the value of attribute category_id.
-
#date ⇒ Object
Returns the value of attribute date.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#payee ⇒ Object
Returns the value of attribute payee.
Instance Method Summary collapse
-
#initialize(payee: nil, date: nil, category_id: nil, notes: nil) ⇒ TransactionModificationBase
constructor
A new instance of TransactionModificationBase.
Methods inherited from Object
Constructor Details
#initialize(payee: nil, date: nil, category_id: nil, notes: nil) ⇒ TransactionModificationBase
Returns a new instance of TransactionModificationBase.
23 24 25 26 27 28 29 |
# File 'lib/lunchmoney/objects/transaction_modification_base.rb', line 23 def initialize(payee: nil, date: nil, category_id: nil, notes: nil) super() @payee = payee @date = date @category_id = category_id @notes = notes end |
Instance Attribute Details
#category_id ⇒ Object
Returns the value of attribute category_id.
13 14 15 |
# File 'lib/lunchmoney/objects/transaction_modification_base.rb', line 13 def category_id @category_id end |
#date ⇒ Object
Returns the value of attribute date.
10 11 12 |
# File 'lib/lunchmoney/objects/transaction_modification_base.rb', line 10 def date @date end |
#notes ⇒ Object
Returns the value of attribute notes.
10 11 12 |
# File 'lib/lunchmoney/objects/transaction_modification_base.rb', line 10 def notes @notes end |
#payee ⇒ Object
Returns the value of attribute payee.
10 11 12 |
# File 'lib/lunchmoney/objects/transaction_modification_base.rb', line 10 def payee @payee end |