Class: TesoteSdk::Models::Account

Inherits:
Struct
  • Object
show all
Extended by:
FromHash
Defined in:
lib/tesote_sdk/models.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from FromHash

build_field, from_array, from_hash

Instance Attribute Details

#bankObject

Returns the value of attribute bank

Returns:

  • (Object)

    the current value of bank



58
59
60
# File 'lib/tesote_sdk/models.rb', line 58

def bank
  @bank
end

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



58
59
60
# File 'lib/tesote_sdk/models.rb', line 58

def data
  @data
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



58
59
60
# File 'lib/tesote_sdk/models.rb', line 58

def id
  @id
end

Returns the value of attribute legal_entity

Returns:

  • (Object)

    the current value of legal_entity



58
59
60
# File 'lib/tesote_sdk/models.rb', line 58

def legal_entity
  @legal_entity
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



58
59
60
# File 'lib/tesote_sdk/models.rb', line 58

def name
  @name
end

#tesote_created_atObject

Returns the value of attribute tesote_created_at

Returns:

  • (Object)

    the current value of tesote_created_at



58
59
60
# File 'lib/tesote_sdk/models.rb', line 58

def tesote_created_at
  @tesote_created_at
end

#tesote_updated_atObject

Returns the value of attribute tesote_updated_at

Returns:

  • (Object)

    the current value of 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