Class: RubyEventStore::Mappers::Default

Inherits:
PipelineMapper show all
Defined in:
lib/ruby_event_store/mappers/default.rb

Direct Known Subclasses

JSONMapper

Instance Method Summary collapse

Methods inherited from PipelineMapper

#event_to_record, #record_to_event

Constructor Details

#initialize(events_class_remapping: {}) ⇒ Default

Returns a new instance of Default.



6
7
8
9
10
11
12
13
# File 'lib/ruby_event_store/mappers/default.rb', line 6

def initialize(events_class_remapping: {})
  super(
    Pipeline.new(
      Transformation::EventClassRemapper.new(events_class_remapping),
      Transformation::SymbolizeMetadataKeys.new
    )
  )
end