Module: EntitySnapshot::Recorded::Serializer

Defined in:
lib/entity_snapshot/event_store/recorded.rb

Class Method Summary collapse

Class Method Details

.instance(raw_data) ⇒ Object



13
14
15
# File 'lib/entity_snapshot/event_store/recorded.rb', line 13

def self.instance(raw_data)
  Message.build raw_data
end

.raw_data(instance) ⇒ Object



9
10
11
# File 'lib/entity_snapshot/event_store/recorded.rb', line 9

def self.raw_data(instance)
  instance.to_h
end