Class: TesoteSdk::Models::SyncResult

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

#addedObject

Returns the value of attribute added

Returns:

  • (Object)

    the current value of added



153
154
155
# File 'lib/tesote_sdk/models.rb', line 153

def added
  @added
end

#has_moreObject

Returns the value of attribute has_more

Returns:

  • (Object)

    the current value of has_more



153
154
155
# File 'lib/tesote_sdk/models.rb', line 153

def has_more
  @has_more
end

#modifiedObject

Returns the value of attribute modified

Returns:

  • (Object)

    the current value of modified



153
154
155
# File 'lib/tesote_sdk/models.rb', line 153

def modified
  @modified
end

#next_cursorObject

Returns the value of attribute next_cursor

Returns:

  • (Object)

    the current value of next_cursor



153
154
155
# File 'lib/tesote_sdk/models.rb', line 153

def next_cursor
  @next_cursor
end

#removedObject

Returns the value of attribute removed

Returns:

  • (Object)

    the current value of removed



153
154
155
# File 'lib/tesote_sdk/models.rb', line 153

def removed
  @removed
end

Class Method Details

.build_field(key, value) ⇒ Object



163
164
165
166
167
168
169
# File 'lib/tesote_sdk/models.rb', line 163

def self.build_field(key, value)
  case key
  when 'added', 'modified' then SyncTransaction.from_array(value)
  when 'removed' then SyncRemoval.from_array(value)
  else value
  end
end