Class: StatelyDB::SyncResult
- Inherits:
-
Object
- Object
- StatelyDB::SyncResult
- Defined in:
- lib/statelydb.rb
Overview
SyncResult represents the results of a sync operation.
Instance Attribute Summary collapse
-
#changed_items ⇒ Array<StatelyDB::Item>
readonly
the items that were changed.
-
#deleted_item_paths ⇒ Array<String>
readonly
the key paths that were deleted.
-
#is_reset ⇒ Boolean
readonly
whether the sync operation reset the token.
-
#token ⇒ StatelyDB::Token
readonly
the token to continue from.
Instance Method Summary collapse
-
#initialize(changed_items:, deleted_item_paths:, is_reset:, token:) ⇒ SyncResult
constructor
A new instance of SyncResult.
Constructor Details
#initialize(changed_items:, deleted_item_paths:, is_reset:, token:) ⇒ SyncResult
Returns a new instance of SyncResult.
348 349 350 351 352 353 |
# File 'lib/statelydb.rb', line 348 def initialize(changed_items:, deleted_item_paths:, is_reset:, token:) @changed_items = changed_items @deleted_item_paths = deleted_item_paths @is_reset = is_reset @token = token end |
Instance Attribute Details
#changed_items ⇒ Array<StatelyDB::Item> (readonly)
the items that were changed
341 342 343 |
# File 'lib/statelydb.rb', line 341 def changed_items @changed_items end |
#deleted_item_paths ⇒ Array<String> (readonly)
the key paths that were deleted
341 342 343 |
# File 'lib/statelydb.rb', line 341 def deleted_item_paths @deleted_item_paths end |
#is_reset ⇒ Boolean (readonly)
whether the sync operation reset the token
341 342 343 |
# File 'lib/statelydb.rb', line 341 def is_reset @is_reset end |
#token ⇒ StatelyDB::Token (readonly)
the token to continue from
341 342 343 |
# File 'lib/statelydb.rb', line 341 def token @token end |