Class: LunchMoney::Objects::Transaction
- Inherits:
-
TransactionBase
- Object
- Object
- TransactionBase
- LunchMoney::Objects::Transaction
- Defined in:
- lib/lunchmoney/objects/transaction.rb
Overview
Instance Attribute Summary collapse
-
#account_display_name ⇒ Object
Returns the value of attribute account_display_name.
-
#asset_display_name ⇒ Object
Returns the value of attribute asset_display_name.
-
#asset_institution_name ⇒ Object
Returns the value of attribute asset_institution_name.
-
#asset_name ⇒ Object
Returns the value of attribute asset_name.
-
#asset_status ⇒ Object
Returns the value of attribute asset_status.
-
#category_group_id ⇒ Object
Returns the value of attribute category_group_id.
-
#category_group_name ⇒ Object
Returns the value of attribute category_group_name.
-
#category_id ⇒ Object
Returns the value of attribute category_id.
-
#category_name ⇒ Object
Returns the value of attribute category_name.
-
#children ⇒ Object
Returns the value of attribute children.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#display_notes ⇒ Object
Returns the value of attribute display_notes.
-
#exclude_from_budget ⇒ Object
Returns the value of attribute exclude_from_budget.
-
#exclude_from_totals ⇒ Object
Returns the value of attribute exclude_from_totals.
-
#external_id ⇒ Object
Returns the value of attribute external_id.
-
#group_id ⇒ Object
Returns the value of attribute group_id.
-
#has_children ⇒ Object
Returns the value of attribute has_children.
-
#institution_name ⇒ Object
Returns the value of attribute institution_name.
-
#is_group ⇒ Object
Returns the value of attribute is_group.
-
#is_income ⇒ Object
Returns the value of attribute is_income.
-
#is_pending ⇒ Object
Returns the value of attribute is_pending.
-
#original_name ⇒ Object
Returns the value of attribute original_name.
-
#parent_id ⇒ Object
Returns the value of attribute parent_id.
-
#plaid_account_display_name ⇒ Object
Returns the value of attribute plaid_account_display_name.
-
#plaid_account_mask ⇒ Object
Returns the value of attribute plaid_account_mask.
-
#plaid_account_name ⇒ Object
Returns the value of attribute plaid_account_name.
-
#plaid_metadata ⇒ Object
Returns the value of attribute plaid_metadata.
-
#recurring_amount ⇒ Object
Returns the value of attribute recurring_amount.
-
#recurring_cadence ⇒ Object
Returns the value of attribute recurring_cadence.
-
#recurring_currency ⇒ Object
Returns the value of attribute recurring_currency.
-
#recurring_description ⇒ Object
Returns the value of attribute recurring_description.
-
#recurring_id ⇒ Object
Returns the value of attribute recurring_id.
-
#recurring_payee ⇒ Object
Returns the value of attribute recurring_payee.
-
#recurring_type ⇒ Object
Returns the value of attribute recurring_type.
-
#source ⇒ Object
Returns the value of attribute source.
-
#status ⇒ Object
Returns the value of attribute status.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Attributes inherited from TransactionBase
#amount, #asset_id, #currency, #date, #id, #notes, #payee, #plaid_account_id, #to_base
Instance Method Summary collapse
Methods inherited from Object
Constructor Details
#initialize(id:, date:, amount:, currency:, to_base:, payee:, is_income:, exclude_from_budget:, exclude_from_totals:, created_at:, updated_at:, status:, is_pending:, has_children:, is_group:, source:, display_name:, account_display_name:, tags:, category_id: nil, category_name: nil, category_group_id: nil, category_group_name: nil, notes: nil, original_name: nil, recurring_id: nil, recurring_payee: nil, recurring_description: nil, recurring_cadence: nil, recurring_type: nil, recurring_amount: nil, recurring_currency: nil, parent_id: nil, group_id: nil, asset_id: nil, asset_institution_name: nil, asset_name: nil, asset_display_name: nil, asset_status: nil, plaid_account_id: nil, plaid_account_name: nil, plaid_account_mask: nil, institution_name: nil, plaid_account_display_name: nil, plaid_metadata: nil, display_notes: nil, external_id: nil, children: nil) ⇒ Transaction
Returns a new instance of Transaction.
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/lunchmoney/objects/transaction.rb', line 108 def initialize(id:, date:, amount:, currency:, to_base:, payee:, is_income:, exclude_from_budget:, exclude_from_totals:, created_at:, updated_at:, status:, is_pending:, has_children:, is_group:, source:, display_name:, account_display_name:, tags:, category_id: nil, category_name: nil, category_group_id: nil, category_group_name: nil, notes: nil, original_name: nil, recurring_id: nil, recurring_payee: nil, recurring_description: nil, recurring_cadence: nil, recurring_type: nil, recurring_amount: nil, recurring_currency: nil, parent_id: nil, group_id: nil, asset_id: nil, asset_institution_name: nil, asset_name: nil, asset_display_name: nil, asset_status: nil, plaid_account_id: nil, plaid_account_name: nil, plaid_account_mask: nil, institution_name: nil, plaid_account_display_name: nil, plaid_metadata: nil, display_notes: nil, external_id: nil, children: nil) super(id:, date:, amount:, currency:, to_base:, payee:, notes:, asset_id:, plaid_account_id:) @is_income = is_income @exclude_from_budget = exclude_from_budget @exclude_from_totals = exclude_from_totals @created_at = created_at @updated_at = updated_at @status = status @is_pending = is_pending @has_children = has_children @is_group = is_group @source = source @display_name = display_name @account_display_name = account_display_name @tags = @category_id = category_id @category_name = category_name @category_group_id = category_group_id @category_group_name = category_group_name @original_name = original_name @recurring_id = recurring_id @recurring_payee = recurring_payee @recurring_description = recurring_description @recurring_cadence = recurring_cadence @recurring_type = recurring_type @recurring_amount = recurring_amount @recurring_currency = recurring_currency @parent_id = parent_id @group_id = group_id @asset_institution_name = asset_institution_name @asset_name = asset_name @asset_display_name = asset_display_name @asset_status = asset_status @plaid_account_name = plaid_account_name @plaid_account_mask = plaid_account_mask @institution_name = institution_name @plaid_account_display_name = plaid_account_display_name @plaid_metadata = @display_notes = display_notes @children = children @external_id = external_id end |
Instance Attribute Details
#account_display_name ⇒ Object
Returns the value of attribute account_display_name.
19 20 21 |
# File 'lib/lunchmoney/objects/transaction.rb', line 19 def account_display_name @account_display_name end |
#asset_display_name ⇒ Object
Returns the value of attribute asset_display_name.
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def asset_display_name @asset_display_name end |
#asset_institution_name ⇒ Object
Returns the value of attribute asset_institution_name.
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def asset_institution_name @asset_institution_name end |
#asset_name ⇒ Object
Returns the value of attribute asset_name.
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def asset_name @asset_name end |
#asset_status ⇒ Object
Returns the value of attribute asset_status.
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def asset_status @asset_status end |
#category_group_id ⇒ Object
Returns the value of attribute category_group_id.
11 12 13 |
# File 'lib/lunchmoney/objects/transaction.rb', line 11 def category_group_id @category_group_id end |
#category_group_name ⇒ Object
Returns the value of attribute category_group_name.
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def category_group_name @category_group_name end |
#category_id ⇒ Object
Returns the value of attribute category_id.
11 12 13 |
# File 'lib/lunchmoney/objects/transaction.rb', line 11 def category_id @category_id end |
#category_name ⇒ Object
Returns the value of attribute category_name.
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def category_name @category_name end |
#children ⇒ Object
Returns the value of attribute children.
54 55 56 |
# File 'lib/lunchmoney/objects/transaction.rb', line 54 def children @children end |
#created_at ⇒ Object
Returns the value of attribute created_at.
19 20 21 |
# File 'lib/lunchmoney/objects/transaction.rb', line 19 def created_at @created_at end |
#display_name ⇒ Object
Returns the value of attribute display_name.
19 20 21 |
# File 'lib/lunchmoney/objects/transaction.rb', line 19 def display_name @display_name end |
#display_notes ⇒ Object
Returns the value of attribute display_notes.
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def display_notes @display_notes end |
#exclude_from_budget ⇒ Object
Returns the value of attribute exclude_from_budget.
48 49 50 |
# File 'lib/lunchmoney/objects/transaction.rb', line 48 def exclude_from_budget @exclude_from_budget end |
#exclude_from_totals ⇒ Object
Returns the value of attribute exclude_from_totals.
48 49 50 |
# File 'lib/lunchmoney/objects/transaction.rb', line 48 def exclude_from_totals @exclude_from_totals end |
#external_id ⇒ Object
Returns the value of attribute external_id.
11 12 13 |
# File 'lib/lunchmoney/objects/transaction.rb', line 11 def external_id @external_id end |
#group_id ⇒ Object
Returns the value of attribute group_id.
11 12 13 |
# File 'lib/lunchmoney/objects/transaction.rb', line 11 def group_id @group_id end |
#has_children ⇒ Object
Returns the value of attribute has_children.
48 49 50 |
# File 'lib/lunchmoney/objects/transaction.rb', line 48 def has_children @has_children end |
#institution_name ⇒ Object
Returns the value of attribute institution_name.
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def institution_name @institution_name end |
#is_group ⇒ Object
Returns the value of attribute is_group.
48 49 50 |
# File 'lib/lunchmoney/objects/transaction.rb', line 48 def is_group @is_group end |
#is_income ⇒ Object
Returns the value of attribute is_income.
48 49 50 |
# File 'lib/lunchmoney/objects/transaction.rb', line 48 def is_income @is_income end |
#is_pending ⇒ Object
Returns the value of attribute is_pending.
48 49 50 |
# File 'lib/lunchmoney/objects/transaction.rb', line 48 def is_pending @is_pending end |
#original_name ⇒ Object
Returns the value of attribute original_name.
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def original_name @original_name end |
#parent_id ⇒ Object
Returns the value of attribute parent_id.
11 12 13 |
# File 'lib/lunchmoney/objects/transaction.rb', line 11 def parent_id @parent_id end |
#plaid_account_display_name ⇒ Object
Returns the value of attribute plaid_account_display_name.
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def plaid_account_display_name @plaid_account_display_name end |
#plaid_account_mask ⇒ Object
Returns the value of attribute plaid_account_mask.
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def plaid_account_mask @plaid_account_mask end |
#plaid_account_name ⇒ Object
Returns the value of attribute plaid_account_name.
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def plaid_account_name @plaid_account_name end |
#plaid_metadata ⇒ Object
Returns the value of attribute plaid_metadata.
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def @plaid_metadata end |
#recurring_amount ⇒ Object
Returns the value of attribute recurring_amount.
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def recurring_amount @recurring_amount end |
#recurring_cadence ⇒ Object
Returns the value of attribute recurring_cadence.
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def recurring_cadence @recurring_cadence end |
#recurring_currency ⇒ Object
Returns the value of attribute recurring_currency.
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def recurring_currency @recurring_currency end |
#recurring_description ⇒ Object
Returns the value of attribute recurring_description.
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def recurring_description @recurring_description end |
#recurring_id ⇒ Object
Returns the value of attribute recurring_id.
11 12 13 |
# File 'lib/lunchmoney/objects/transaction.rb', line 11 def recurring_id @recurring_id end |
#recurring_payee ⇒ Object
Returns the value of attribute recurring_payee.
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def recurring_payee @recurring_payee end |
#recurring_type ⇒ Object
Returns the value of attribute recurring_type.
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def recurring_type @recurring_type end |
#source ⇒ Object
Returns the value of attribute source.
19 20 21 |
# File 'lib/lunchmoney/objects/transaction.rb', line 19 def source @source end |
#status ⇒ Object
Returns the value of attribute status.
19 20 21 |
# File 'lib/lunchmoney/objects/transaction.rb', line 19 def status @status end |
#tags ⇒ Object
Returns the value of attribute tags.
51 52 53 |
# File 'lib/lunchmoney/objects/transaction.rb', line 51 def @tags end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
19 20 21 |
# File 'lib/lunchmoney/objects/transaction.rb', line 19 def updated_at @updated_at end |