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
39 40 41 42 43 44 45 46 |
# File 'lib/sequent/core/stream_record.rb', line 39 def event_stream EventStream.new( aggregate_type:, aggregate_id:, events_partition_key:, unique_keys: aggregate_unique_keys.to_h { |key| [key.scope.to_sym, key.key] }, ) end |
#event_stream=(data) ⇒ Object
48 49 50 51 52 |
# File 'lib/sequent/core/stream_record.rb', line 48 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 |