Class: EventStoreClient::GRPC::Shared::Options::StreamOptions
- Inherits:
-
Object
- Object
- EventStoreClient::GRPC::Shared::Options::StreamOptions
- Defined in:
- lib/event_store_client/adapters/grpc/shared/options/stream_options.rb
Instance Method Summary collapse
-
#initialize(stream_name, options) ⇒ StreamOptions
constructor
A new instance of StreamOptions.
- #request_options ⇒ Hash
Constructor Details
#initialize(stream_name, options) ⇒ StreamOptions
Returns a new instance of StreamOptions.
20 21 22 23 |
# File 'lib/event_store_client/adapters/grpc/shared/options/stream_options.rb', line 20 def initialize(stream_name, ) @stream_name = stream_name @options = end |
Instance Method Details
#request_options ⇒ Hash
26 27 28 |
# File 'lib/event_store_client/adapters/grpc/shared/options/stream_options.rb', line 26 def stream_name == '$all' ? all_stream : stream end |