Class: GrpcKit::Interceptors::Server::Streaming
- Inherits:
-
Object
- Object
- GrpcKit::Interceptors::Server::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, &block) ⇒ Object
Constructor Details
#initialize(interceptors) ⇒ Streaming
Returns a new instance of Streaming.
39 40 41 |
# File 'lib/grpc_kit/interceptors.rb', line 39 def initialize(interceptors) @registry = GrpcKit::InterceptorRegistry.new(interceptors) end |
Instance Method Details
#intercept(call, &block) ⇒ Object
43 44 45 |
# File 'lib/grpc_kit/interceptors.rb', line 43 def intercept(call, &block) do_intercept(@registry.build, call, &block) end |