Class: GrpcKit::Rpcs::Call
- Inherits:
-
Object
- Object
- GrpcKit::Rpcs::Call
- Extended by:
- Forwardable
- Defined in:
- lib/grpc_kit/rpcs/call.rb
Overview
compatible for grpc gem
Defined Under Namespace
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
Instance Method Summary collapse
-
#initialize(metadata, method_name, service_name, stream) ⇒ Call
constructor
A new instance of Call.
Constructor Details
#initialize(metadata, method_name, service_name, stream) ⇒ Call
Returns a new instance of Call.
19 20 21 22 23 24 |
# File 'lib/grpc_kit/rpcs/call.rb', line 19 def initialize(, method_name, service_name, stream) @metadata = klass = Klass.new(service_name) @method = Name.new(method_name, Reciver.new(klass)) @stream = stream end |
Instance Attribute Details
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
17 18 19 |
# File 'lib/grpc_kit/rpcs/call.rb', line 17 def @metadata end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
17 18 19 |
# File 'lib/grpc_kit/rpcs/call.rb', line 17 def method @method end |