Class: TesoteSdk::Models::Transaction

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

#counterpartyObject

Returns the value of attribute counterparty

Returns:

  • (Object)

    the current value of counterparty



109
110
111
# File 'lib/tesote_sdk/models.rb', line 109

def counterparty
  @counterparty
end

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



109
110
111
# File 'lib/tesote_sdk/models.rb', line 109

def data
  @data
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



109
110
111
# File 'lib/tesote_sdk/models.rb', line 109

def id
  @id
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



109
110
111
# File 'lib/tesote_sdk/models.rb', line 109

def status
  @status
end

#tesote_imported_atObject

Returns the value of attribute tesote_imported_at

Returns:

  • (Object)

    the current value of tesote_imported_at



109
110
111
# File 'lib/tesote_sdk/models.rb', line 109

def tesote_imported_at
  @tesote_imported_at
end

#tesote_updated_atObject

Returns the value of attribute tesote_updated_at

Returns:

  • (Object)

    the current value of tesote_updated_at



109
110
111
# File 'lib/tesote_sdk/models.rb', line 109

def tesote_updated_at
  @tesote_updated_at
end

#transaction_categoriesObject

Returns the value of attribute transaction_categories

Returns:

  • (Object)

    the current value of transaction_categories



109
110
111
# File 'lib/tesote_sdk/models.rb', line 109

def transaction_categories
  @transaction_categories
end

Class Method Details

.build_field(key, value) ⇒ Object



121
122
123
124
125
126
127
128
# File 'lib/tesote_sdk/models.rb', line 121

def self.build_field(key, value)
  case key
  when 'data' then TransactionData.from_hash(value)
  when 'transaction_categories' then TransactionCategory.from_array(value)
  when 'counterparty' then Counterparty.from_hash(value)
  else value
  end
end