Class: TesoteSdk::Models::SearchResult

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

#totalObject

Returns the value of attribute total

Returns:

  • (Object)

    the current value of total



395
396
397
# File 'lib/tesote_sdk/models.rb', line 395

def total
  @total
end

#transactionsObject

Returns the value of attribute transactions

Returns:

  • (Object)

    the current value of transactions



395
396
397
# File 'lib/tesote_sdk/models.rb', line 395

def transactions
  @transactions
end

Class Method Details

.build_field(key, value) ⇒ Object



398
399
400
401
402
403
# File 'lib/tesote_sdk/models.rb', line 398

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