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
22 23 24 25 26 27 28 |
# File 'lib/sequent/core/stream_record.rb', line 22 def event_stream EventStream.new( aggregate_type:, aggregate_id:, events_partition_key:, ) end |
#event_stream=(data) ⇒ Object
30 31 32 33 34 |
# File 'lib/sequent/core/stream_record.rb', line 30 def event_stream=(data) self.aggregate_type = data.aggregate_type self.aggregate_id = data.aggregate_id self.events_partition_key = data.events_partition_key end |