Class: LunchMoney::Objects::UpdateTransaction
- Inherits:
-
TransactionModificationBase
- Object
- Object
- TransactionModificationBase
- LunchMoney::Objects::UpdateTransaction
- Defined in:
- lib/lunchmoney/objects/update_transaction.rb
Overview
object used when updating a transaction https://lunchmoney.dev/#update-transaction
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#asset_id ⇒ Object
Returns the value of attribute asset_id.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#external_id ⇒ Object
Returns the value of attribute external_id.
-
#recurring_id ⇒ Object
Returns the value of attribute recurring_id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#tags ⇒ Object
Returns the value of attribute tags.
Attributes inherited from TransactionModificationBase
#category_id, #date, #notes, #payee
Instance Method Summary collapse
-
#initialize(tags: nil, category_id: nil, payee: nil, amount: nil, currency: nil, asset_id: nil, recurring_id: nil, notes: nil, status: nil, external_id: nil, date: nil) ⇒ UpdateTransaction
constructor
A new instance of UpdateTransaction.
Methods inherited from Object
Constructor Details
#initialize(tags: nil, category_id: nil, payee: nil, amount: nil, currency: nil, asset_id: nil, recurring_id: nil, notes: nil, status: nil, external_id: nil, date: nil) ⇒ UpdateTransaction
Returns a new instance of UpdateTransaction.
34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/lunchmoney/objects/update_transaction.rb', line 34 def initialize(tags: nil, category_id: nil, payee: nil, amount: nil, currency: nil, asset_id: nil, recurring_id: nil, notes: nil, status: nil, external_id: nil, date: nil) super(payee:, date:, category_id:, notes:) @amount = amount @tags = @currency = currency @asset_id = asset_id @recurring_id = recurring_id @status = status @external_id = external_id end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
11 12 13 |
# File 'lib/lunchmoney/objects/update_transaction.rb', line 11 def amount @amount end |
#asset_id ⇒ Object
Returns the value of attribute asset_id.
14 15 16 |
# File 'lib/lunchmoney/objects/update_transaction.rb', line 14 def asset_id @asset_id end |
#currency ⇒ Object
Returns the value of attribute currency.
11 12 13 |
# File 'lib/lunchmoney/objects/update_transaction.rb', line 11 def currency @currency end |
#external_id ⇒ Object
Returns the value of attribute external_id.
11 12 13 |
# File 'lib/lunchmoney/objects/update_transaction.rb', line 11 def external_id @external_id end |
#recurring_id ⇒ Object
Returns the value of attribute recurring_id.
14 15 16 |
# File 'lib/lunchmoney/objects/update_transaction.rb', line 14 def recurring_id @recurring_id end |
#status ⇒ Object
Returns the value of attribute status.
11 12 13 |
# File 'lib/lunchmoney/objects/update_transaction.rb', line 11 def status @status end |
#tags ⇒ Object
Returns the value of attribute tags.
17 18 19 |
# File 'lib/lunchmoney/objects/update_transaction.rb', line 17 def @tags end |