Class: GrpcKit::Rpcs::ClientRpc
- Inherits:
-
Object
- Object
- GrpcKit::Rpcs::ClientRpc
- Defined in:
- lib/grpc_kit/rpcs.rb
Direct Known Subclasses
GrpcKit::Rpcs::Client::BidiStreamer, GrpcKit::Rpcs::Client::ClientStreamer, GrpcKit::Rpcs::Client::RequestResponse, GrpcKit::Rpcs::Client::ServerStreamer
Instance Attribute Summary collapse
- #config ⇒ GrpcKit::MethodConfig readonly
Instance Method Summary collapse
-
#initialize(config) ⇒ ClientRpc
constructor
A new instance of ClientRpc.
- #invoke(stream, request, metadata: {}, timeout: nil) ⇒ Object
Constructor Details
#initialize(config) ⇒ ClientRpc
Returns a new instance of ClientRpc.
14 15 16 |
# File 'lib/grpc_kit/rpcs.rb', line 14 def initialize(config) @config = config end |
Instance Attribute Details
#config ⇒ GrpcKit::MethodConfig (readonly)
11 12 13 |
# File 'lib/grpc_kit/rpcs.rb', line 11 def config @config end |
Instance Method Details
#invoke(stream, request, metadata: {}, timeout: nil) ⇒ Object
18 |
# File 'lib/grpc_kit/rpcs.rb', line 18 def invoke(stream, request, metadata: {}, timeout: nil); end |