Class: BaseCRM::SyncMeta
- Defined in:
- lib/basecrm/models/sync_meta.rb
Instance Attribute Summary collapse
-
#ack_key ⇒ String
readonly
An acknowledgement key.
-
#event_type ⇒ String
readonly
An event type.
-
#revision ⇒ String
readonly
Data revision.
Instance Method Summary collapse
- #ack ⇒ Object
-
#acknowledged? ⇒ Boolean
attr_reader :revision.
- #nack ⇒ Object
Instance Attribute Details
#ack_key ⇒ String (readonly)
Returns An acknowledgement key.
|
# File 'lib/basecrm/models/sync_meta.rb', line 7
|
#event_type ⇒ String (readonly)
Returns An event type. Possible values: ‘created`, `updated`, `deleted`.
|
# File 'lib/basecrm/models/sync_meta.rb', line 3
|
#revision ⇒ String (readonly)
Returns Data revision.
15 16 17 |
# File 'lib/basecrm/models/sync_meta.rb', line 15 def acknowledged? !!@acknowledged end |
Instance Method Details
#ack ⇒ Object
19 20 21 22 |
# File 'lib/basecrm/models/sync_meta.rb', line 19 def ack @acknowledged = true [:ack, self.ack_key] end |
#acknowledged? ⇒ Boolean
attr_reader :revision
15 16 17 |
# File 'lib/basecrm/models/sync_meta.rb', line 15 def acknowledged? !!@acknowledged end |
#nack ⇒ Object
24 25 26 27 |
# File 'lib/basecrm/models/sync_meta.rb', line 24 def nack @acknowledged = true [:nack, self.ack_key] end |