module EventStore::HTTP::Controls::ReadEvent::OutputSchema::Transformer
Public Class Methods
instance(raw_data)
click to toggle source
# File lib/event_store/http/controls/read_event/output_schema.rb, line 24 def self.instance(raw_data) content = raw_data.fetch :content type = content.fetch :eventType data = Casing::Underscore.(content.fetch(:data)) { :type => type, :data => data } end
json()
click to toggle source
# File lib/event_store/http/controls/read_event/output_schema.rb, line 20 def self.json JSON end