Class: RubyEventStore::Browser::GetStream
- Inherits:
-
Object
- Object
- RubyEventStore::Browser::GetStream
- Defined in:
- lib/ruby_event_store/browser/get_stream.rb
Instance Method Summary collapse
-
#initialize(routing:, stream_name:, related_streams_query:) ⇒ GetStream
constructor
A new instance of GetStream.
- #to_h ⇒ Object
Constructor Details
#initialize(routing:, stream_name:, related_streams_query:) ⇒ GetStream
Returns a new instance of GetStream.
6 7 8 9 10 |
# File 'lib/ruby_event_store/browser/get_stream.rb', line 6 def initialize(routing:, stream_name:, related_streams_query:) @routing = routing @stream_name = stream_name @related_streams_query = end |
Instance Method Details
#to_h ⇒ Object
12 13 14 |
# File 'lib/ruby_event_store/browser/get_stream.rb', line 12 def to_h { data: JsonApiStream.new(stream_name, events_from_stream_url, ).to_h } end |