Class: RubyEventStore::Mappers::EncryptionMapper

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

Instance Method Summary collapse

Methods inherited from PipelineMapper

#event_to_record, #record_to_event

Constructor Details

#initialize(key_repository, serializer: Serializers::YAML, forgotten_data: ForgottenData.new) ⇒ EncryptionMapper

Returns a new instance of EncryptionMapper.



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

def initialize(key_repository, serializer: Serializers::YAML, forgotten_data: ForgottenData.new)
  super(
    Pipeline.new(
      Transformation::Encryption.new(key_repository, serializer: serializer, forgotten_data: forgotten_data),
      Transformation::SymbolizeMetadataKeys.new
    )
  )
end