Class: TesoteSdk::Models::Transaction
- Inherits:
-
Struct
- Object
- Struct
- TesoteSdk::Models::Transaction
- Extended by:
- FromHash
- Defined in:
- lib/tesote_sdk/models.rb
Instance Attribute Summary collapse
-
#counterparty ⇒ Object
Returns the value of attribute counterparty.
-
#data ⇒ Object
Returns the value of attribute data.
-
#id ⇒ Object
Returns the value of attribute id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#tesote_imported_at ⇒ Object
Returns the value of attribute tesote_imported_at.
-
#tesote_updated_at ⇒ Object
Returns the value of attribute tesote_updated_at.
-
#transaction_categories ⇒ Object
Returns the value of attribute transaction_categories.
Class Method Summary collapse
Methods included from FromHash
build_field, from_array, from_hash
Instance Attribute Details
#counterparty ⇒ Object
Returns the value of attribute counterparty
109 110 111 |
# File 'lib/tesote_sdk/models.rb', line 109 def counterparty @counterparty end |
#data ⇒ Object
Returns the value of attribute data
109 110 111 |
# File 'lib/tesote_sdk/models.rb', line 109 def data @data end |
#id ⇒ Object
Returns the value of attribute id
109 110 111 |
# File 'lib/tesote_sdk/models.rb', line 109 def id @id end |
#status ⇒ Object
Returns the value of attribute status
109 110 111 |
# File 'lib/tesote_sdk/models.rb', line 109 def status @status end |
#tesote_imported_at ⇒ Object
Returns the value of attribute tesote_imported_at
109 110 111 |
# File 'lib/tesote_sdk/models.rb', line 109 def tesote_imported_at @tesote_imported_at end |
#tesote_updated_at ⇒ Object
Returns the value of attribute tesote_updated_at
109 110 111 |
# File 'lib/tesote_sdk/models.rb', line 109 def tesote_updated_at @tesote_updated_at end |
#transaction_categories ⇒ Object
Returns the value of attribute transaction_categories
109 110 111 |
# File 'lib/tesote_sdk/models.rb', line 109 def transaction_categories @transaction_categories end |
Class Method Details
.build_field(key, value) ⇒ Object
121 122 123 124 125 126 127 128 |
# File 'lib/tesote_sdk/models.rb', line 121 def self.build_field(key, value) case key when 'data' then TransactionData.from_hash(value) when 'transaction_categories' then TransactionCategory.from_array(value) when 'counterparty' then Counterparty.from_hash(value) else value end end |