Class: ActiveEventStore::Mapper
- Inherits:
-
RubyEventStore::Mappers::PipelineMapper
- Object
- RubyEventStore::Mappers::PipelineMapper
- ActiveEventStore::Mapper
- Defined in:
- lib/active_event_store/mapper.rb
Instance Method Summary collapse
-
#initialize(mapping:) ⇒ Mapper
constructor
A new instance of Mapper.
Constructor Details
#initialize(mapping:) ⇒ Mapper
Returns a new instance of Mapper.
5 6 7 8 9 10 |
# File 'lib/active_event_store/mapper.rb', line 5 def initialize(mapping:) super(RubyEventStore::Mappers::Pipeline.new( RubyEventStore::Mappers::Transformation::SymbolizeMetadataKeys.new, to_domain_event: ActiveEventStore::DomainEvent.new(mapping: mapping) )) end |