Class: LockstepSdk::SyncEntityResultModel
- Inherits:
-
Object
- Object
- LockstepSdk::SyncEntityResultModel
- Defined in:
- lib/lockstep_sdk/models/sync_entity_result_model.rb
Overview
Contains information about a sync process for an entity.
Instance Attribute Summary collapse
-
#error_count ⇒ Int32
The number of errors encountered during sync.
-
#errors ⇒ Object
The errors encountered during sync keyed by ERP key.
-
#insert_count ⇒ Int32
The number of entities inserted.
-
#skip_count ⇒ Int32
The number of entities skipped.
-
#update_count ⇒ Int32
The number of entities updated.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ SyncEntityResultModel
constructor
Initialize the SyncEntityResultModel using the provided prototype.
Constructor Details
#initialize(params = {}) ⇒ SyncEntityResultModel
Initialize the SyncEntityResultModel using the provided prototype
24 25 26 27 28 29 30 |
# File 'lib/lockstep_sdk/models/sync_entity_result_model.rb', line 24 def initialize(params = {}) @insert_count = params.dig(:insert_count) @update_count = params.dig(:update_count) @skip_count = params.dig(:skip_count) @error_count = params.dig(:error_count) @errors = params.dig(:errors) end |
Instance Attribute Details
#error_count ⇒ Int32
Returns The number of errors encountered during sync.
39 40 41 |
# File 'lib/lockstep_sdk/models/sync_entity_result_model.rb', line 39 def error_count @error_count end |
#errors ⇒ Object
Returns The errors encountered during sync keyed by ERP key.
41 42 43 |
# File 'lib/lockstep_sdk/models/sync_entity_result_model.rb', line 41 def errors @errors end |
#insert_count ⇒ Int32
Returns The number of entities inserted.
33 34 35 |
# File 'lib/lockstep_sdk/models/sync_entity_result_model.rb', line 33 def insert_count @insert_count end |
#skip_count ⇒ Int32
Returns The number of entities skipped.
37 38 39 |
# File 'lib/lockstep_sdk/models/sync_entity_result_model.rb', line 37 def skip_count @skip_count end |
#update_count ⇒ Int32
Returns The number of entities updated.
35 36 37 |
# File 'lib/lockstep_sdk/models/sync_entity_result_model.rb', line 35 def update_count @update_count end |