Class: GrpcKit::Rpcs::Call

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/grpc_kit/rpcs/call.rb

Overview

compatible for grpc gem

Defined Under Namespace

Classes: Klass, Name, Reciver

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#metadataObject (readonly)

Returns the value of attribute metadata.



17
18
19
# File 'lib/grpc_kit/rpcs/call.rb', line 17

def 
  @metadata
end

#methodObject (readonly)

Returns the value of attribute method.



17
18
19
# File 'lib/grpc_kit/rpcs/call.rb', line 17

def method
  @method
end