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 lunchmoney.dev/#update-transaction
Instance Attribute Summary collapse
- #amount ⇒ String?
- #asset_id ⇒ Integer?
- #currency ⇒ String?
- #external_id ⇒ String?
- #recurring_id ⇒ Integer?
- #status ⇒ String?
- #tags ⇒ Array<String, Integer>?
Attributes inherited from TransactionModificationBase
#category_id, #date, #notes, #payee
Instance Method Summary collapse
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) ⇒ void
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 ⇒ String?
11 12 13 |
# File 'lib/lunchmoney/objects/update_transaction.rb', line 11 def amount @amount end |
#asset_id ⇒ Integer?
14 15 16 |
# File 'lib/lunchmoney/objects/update_transaction.rb', line 14 def asset_id @asset_id end |
#currency ⇒ String?
11 12 13 |
# File 'lib/lunchmoney/objects/update_transaction.rb', line 11 def currency @currency end |
#external_id ⇒ String?
11 12 13 |
# File 'lib/lunchmoney/objects/update_transaction.rb', line 11 def external_id @external_id end |
#recurring_id ⇒ Integer?
14 15 16 |
# File 'lib/lunchmoney/objects/update_transaction.rb', line 14 def recurring_id @recurring_id end |
#status ⇒ String?
11 12 13 |
# File 'lib/lunchmoney/objects/update_transaction.rb', line 11 def status @status end |
#tags ⇒ Array<String, Integer>?
17 18 19 |
# File 'lib/lunchmoney/objects/update_transaction.rb', line 17 def @tags end |