Class: Sequent::Core::StreamRecord
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Sequent::Core::StreamRecord
- Defined in:
- lib/sequent/core/stream_record.rb
Instance Method Summary collapse
Instance Method Details
#event_stream ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/sequent/core/stream_record.rb', line 26 def event_stream EventStream.new( aggregate_type: aggregate_type, aggregate_id: aggregate_id, snapshot_threshold: snapshot_threshold, stream_record_id: id, ) end |
#event_stream=(data) ⇒ Object
35 36 37 38 39 |
# File 'lib/sequent/core/stream_record.rb', line 35 def event_stream=(data) self.aggregate_type = data.aggregate_type self.aggregate_id = data.aggregate_id self.snapshot_threshold = data.snapshot_threshold end |