Module: EventStore::HTTP::Controls::ReadStream::OutputSchema::Transformer
- Defined in:
- lib/event_store/http/controls/read_stream/output_schema.rb
Defined Under Namespace
Modules: JSON
Class Method Summary collapse
Class Method Details
.instance(raw_data) ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/event_store/http/controls/read_stream/output_schema.rb', line 25 def self.instance(raw_data) raw_data.fetch('entries').map do |entry| edit_link = nil entry['links'].each do |link| if link.fetch('relation') == 'edit' edit_link = link.fetch 'uri' break end end edit_link end end |
.json ⇒ Object
21 22 23 |
# File 'lib/event_store/http/controls/read_stream/output_schema.rb', line 21 def self.json JSON end |