Class: Dtn::Streaming::RequestBuilder
- Inherits:
-
Object
- Object
- Dtn::Streaming::RequestBuilder
- Defined in:
- lib/dtn/streaming/request_builder.rb
Overview
Request builder abstraction
Defined Under Namespace
Classes: Proxy
Instance Method Summary collapse
-
#initialize(client:) ⇒ RequestBuilder
constructor
A new instance of RequestBuilder.
- #method_missing(method_name, *_args, **_opts, &_blk) ⇒ Object
- #respond_to_missing?(method_name, include_private = false) ⇒ Boolean
Constructor Details
#initialize(client:) ⇒ RequestBuilder
Returns a new instance of RequestBuilder.
32 33 34 |
# File 'lib/dtn/streaming/request_builder.rb', line 32 def initialize(client:) @client = client end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Instance Method Details
#respond_to_missing?(method_name, include_private = false) ⇒ Boolean
42 43 44 45 46 |
# File 'lib/dtn/streaming/request_builder.rb', line 42 def respond_to_missing?(method_name, include_private = false) _requests_module(method_name).is_a? Module rescue NameError super end |