module EventStore::HTTP::Controls::ReadStream::OutputSchema::Result
Public Class Methods
example(events: nil, stream: nil)
click to toggle source
# File lib/event_store/http/controls/read_stream/output_schema.rb, line 11 def self.example(events: nil, stream: nil) events ||= 1 (0...events).to_a.reverse.map do |position| URI::Event.raw stream: stream, position: position end end