Class: ActiveEventStore::Mapper

Inherits:
RubyEventStore::Mappers::PipelineMapper
  • Object
show all
Defined in:
lib/active_event_store/mapper.rb

Instance Method Summary collapse

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