Class: TesoteSdk::Models::TransactionList

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

#paginationObject

Returns the value of attribute pagination

Returns:

  • (Object)

    the current value of pagination



379
380
381
# File 'lib/tesote_sdk/models.rb', line 379

def pagination
  @pagination
end

#totalObject

Returns the value of attribute total

Returns:

  • (Object)

    the current value of total



379
380
381
# File 'lib/tesote_sdk/models.rb', line 379

def total
  @total
end

#transactionsObject

Returns the value of attribute transactions

Returns:

  • (Object)

    the current value of transactions



379
380
381
# File 'lib/tesote_sdk/models.rb', line 379

def transactions
  @transactions
end

Class Method Details

.build_field(key, value) ⇒ Object



382
383
384
385
386
387
388
# File 'lib/tesote_sdk/models.rb', line 382

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