Class: TesoteSdk::Models::AccountList

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

#accountsObject

Returns the value of attribute accounts

Returns:

  • (Object)

    the current value of accounts



367
368
369
# File 'lib/tesote_sdk/models.rb', line 367

def accounts
  @accounts
end

#paginationObject

Returns the value of attribute pagination

Returns:

  • (Object)

    the current value of pagination



367
368
369
# File 'lib/tesote_sdk/models.rb', line 367

def pagination
  @pagination
end

#totalObject

Returns the value of attribute total

Returns:

  • (Object)

    the current value of total



367
368
369
# File 'lib/tesote_sdk/models.rb', line 367

def total
  @total
end

Class Method Details

.build_field(key, value) ⇒ Object



370
371
372
373
374
375
376
# File 'lib/tesote_sdk/models.rb', line 370

def self.build_field(key, value)
  case key
  when 'accounts' then Account.from_array(value)
  when 'pagination' then Pagination.from_hash(value)
  else value
  end
end