Class: GrpcKit::Interceptors::Client::Streaming
- Inherits:
-
Object
- Object
- GrpcKit::Interceptors::Client::Streaming
- Defined in:
- lib/grpc_kit/interceptors.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(interceptors) ⇒ Streaming
constructor
A new instance of Streaming.
- #intercept(call, metadata, &block) ⇒ Object
Constructor Details
#initialize(interceptors) ⇒ Streaming
Returns a new instance of Streaming.
10 11 12 |
# File 'lib/grpc_kit/interceptors.rb', line 10 def initialize(interceptors) @registry = GrpcKit::InterceptorRegistry.new(interceptors) end |
Instance Method Details
#intercept(call, metadata, &block) ⇒ Object
15 16 17 |
# File 'lib/grpc_kit/interceptors.rb', line 15 def intercept(call, , &block) do_intercept(@registry.build, call, , &block) end |