Class: TesoteSdk::Models::Account
- Inherits:
-
Struct
- Object
- Struct
- TesoteSdk::Models::Account
- Extended by:
- FromHash
- Defined in:
- lib/tesote_sdk/models.rb
Instance Attribute Summary collapse
-
#bank ⇒ Object
Returns the value of attribute bank.
-
#data ⇒ Object
Returns the value of attribute data.
-
#id ⇒ Object
Returns the value of attribute id.
-
#legal_entity ⇒ Object
Returns the value of attribute legal_entity.
-
#name ⇒ Object
Returns the value of attribute name.
-
#tesote_created_at ⇒ Object
Returns the value of attribute tesote_created_at.
-
#tesote_updated_at ⇒ Object
Returns the value of attribute tesote_updated_at.
Class Method Summary collapse
Methods included from FromHash
build_field, from_array, from_hash
Instance Attribute Details
#bank ⇒ Object
Returns the value of attribute bank
58 59 60 |
# File 'lib/tesote_sdk/models.rb', line 58 def bank @bank end |
#data ⇒ Object
Returns the value of attribute data
58 59 60 |
# File 'lib/tesote_sdk/models.rb', line 58 def data @data end |
#id ⇒ Object
Returns the value of attribute id
58 59 60 |
# File 'lib/tesote_sdk/models.rb', line 58 def id @id end |
#legal_entity ⇒ Object
Returns the value of attribute legal_entity
58 59 60 |
# File 'lib/tesote_sdk/models.rb', line 58 def legal_entity @legal_entity end |
#name ⇒ Object
Returns the value of attribute name
58 59 60 |
# File 'lib/tesote_sdk/models.rb', line 58 def name @name end |
#tesote_created_at ⇒ Object
Returns the value of attribute tesote_created_at
58 59 60 |
# File 'lib/tesote_sdk/models.rb', line 58 def tesote_created_at @tesote_created_at end |
#tesote_updated_at ⇒ Object
Returns the value of attribute tesote_updated_at
58 59 60 |
# File 'lib/tesote_sdk/models.rb', line 58 def tesote_updated_at @tesote_updated_at end |
Class Method Details
.build_field(key, value) ⇒ Object
70 71 72 73 74 75 76 77 |
# File 'lib/tesote_sdk/models.rb', line 70 def self.build_field(key, value) case key when 'data' then AccountData.from_hash(value) when 'bank' then Bank.from_hash(value) when 'legal_entity' then LegalEntity.from_hash(value) else value end end |