Class: TesoteSdk::Models::SyncResult
- Inherits:
-
Struct
- Object
- Struct
- TesoteSdk::Models::SyncResult
- Extended by:
- FromHash
- Defined in:
- lib/tesote_sdk/models.rb
Instance Attribute Summary collapse
-
#added ⇒ Object
Returns the value of attribute added.
-
#has_more ⇒ Object
Returns the value of attribute has_more.
-
#modified ⇒ Object
Returns the value of attribute modified.
-
#next_cursor ⇒ Object
Returns the value of attribute next_cursor.
-
#removed ⇒ Object
Returns the value of attribute removed.
Class Method Summary collapse
Methods included from FromHash
build_field, from_array, from_hash
Instance Attribute Details
#added ⇒ Object
Returns the value of attribute added
153 154 155 |
# File 'lib/tesote_sdk/models.rb', line 153 def added @added end |
#has_more ⇒ Object
Returns the value of attribute has_more
153 154 155 |
# File 'lib/tesote_sdk/models.rb', line 153 def has_more @has_more end |
#modified ⇒ Object
Returns the value of attribute modified
153 154 155 |
# File 'lib/tesote_sdk/models.rb', line 153 def modified @modified end |
#next_cursor ⇒ Object
Returns the value of attribute next_cursor
153 154 155 |
# File 'lib/tesote_sdk/models.rb', line 153 def next_cursor @next_cursor end |
#removed ⇒ Object
Returns the value of attribute 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 |