Class: GrpcKit::Calls::Client::RequestResponse
- Inherits:
-
GrpcKit::Call
- Object
- GrpcKit::Call
- GrpcKit::Calls::Client::RequestResponse
- Defined in:
- lib/grpc_kit/calls/client_request_response.rb
Instance Attribute Summary
Attributes inherited from GrpcKit::Call
#metadata, #method, #method_name, #service_name
Instance Method Summary collapse
-
#recv ⇒ Object
Response object.
- #send_msg(data) ⇒ void
Methods inherited from GrpcKit::Call
Constructor Details
This class inherits a constructor from GrpcKit::Call
Instance Method Details
#recv ⇒ Object
Returns response object.
18 19 20 |
# File 'lib/grpc_kit/calls/client_request_response.rb', line 18 def recv @stream.recv_msg(last: true) end |
#send_msg(data) ⇒ void
This method returns an undefined value.
13 14 15 |
# File 'lib/grpc_kit/calls/client_request_response.rb', line 13 def send_msg(data) @stream.send_msg(data, last: true, metadata: ) end |