Class: PhobosDBCheckpoint::Event
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- PhobosDBCheckpoint::Event
- Includes:
- EventHelper
- Defined in:
- lib/phobos_db_checkpoint/event.rb
Instance Method Summary collapse
Methods included from EventHelper
#configured_handler, #configured_listener, #method_missing, #respond_to_missing?
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PhobosDBCheckpoint::EventHelper
Instance Method Details
#acknowledge!(ack) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/phobos_db_checkpoint/event.rb', line 16 def acknowledge!(ack) self.entity_id = ack.entity_id self.event_time = ack.event_time self.event_type = ack.event_type self.event_version = ack.event_version save! end |
#exists? ⇒ Boolean
12 13 14 |
# File 'lib/phobos_db_checkpoint/event.rb', line 12 def exists? Event.where(topic: topic, group_id: group_id, checksum: checksum).exists? end |