class RubyEventStore::Mappers::Transformation::StringifyMetadataKeys
Public Instance Methods
Source
# File lib/ruby_event_store/mappers/transformation/stringify_metadata_keys.rb, line 7 def dump(record) stringify(record) end
Source
# File lib/ruby_event_store/mappers/transformation/stringify_metadata_keys.rb, line 11 def load(record) stringify(record) end
Private Instance Methods
Source
# File lib/ruby_event_store/mappers/transformation/stringify_metadata_keys.rb, line 17 def stringify(record) Record.new( event_id: record.event_id, event_type: record.event_type, data: record.data, metadata: TransformKeys.stringify(record.metadata), timestamp: record.timestamp, valid_at: record.valid_at, ) end