Class: TesoteSdk::Models::SyncSession

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

#accounts_countObject

Returns the value of attribute accounts_count

Returns:

  • (Object)

    the current value of accounts_count



195
196
197
# File 'lib/tesote_sdk/models.rb', line 195

def accounts_count
  @accounts_count
end

#completed_atObject

Returns the value of attribute completed_at

Returns:

  • (Object)

    the current value of completed_at



195
196
197
# File 'lib/tesote_sdk/models.rb', line 195

def completed_at
  @completed_at
end

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



195
196
197
# File 'lib/tesote_sdk/models.rb', line 195

def error
  @error
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



195
196
197
# File 'lib/tesote_sdk/models.rb', line 195

def id
  @id
end

#performanceObject

Returns the value of attribute performance

Returns:

  • (Object)

    the current value of performance



195
196
197
# File 'lib/tesote_sdk/models.rb', line 195

def performance
  @performance
end

#started_atObject

Returns the value of attribute started_at

Returns:

  • (Object)

    the current value of started_at



195
196
197
# File 'lib/tesote_sdk/models.rb', line 195

def started_at
  @started_at
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



195
196
197
# File 'lib/tesote_sdk/models.rb', line 195

def status
  @status
end

#transactions_syncedObject

Returns the value of attribute transactions_synced

Returns:

  • (Object)

    the current value of transactions_synced



195
196
197
# File 'lib/tesote_sdk/models.rb', line 195

def transactions_synced
  @transactions_synced
end

Class Method Details

.build_field(key, value) ⇒ Object



208
209
210
211
212
213
214
# File 'lib/tesote_sdk/models.rb', line 208

def self.build_field(key, value)
  case key
  when 'error' then SyncSessionError.from_hash(value)
  when 'performance' then SyncSessionPerformance.from_hash(value)
  else value
  end
end