Class: Protobuf::Rpc::RpcMethod

Inherits:
Object
  • Object
show all
Defined in:
lib/protobuf/rpc/rpc_method.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method, request_type, response_type, &options_block) ⇒ RpcMethod

Returns a new instance of RpcMethod.



8
9
10
11
12
13
# File 'lib/protobuf/rpc/rpc_method.rb', line 8

def initialize(method, request_type, response_type, &options_block)
  @method = method
  @request_type = request_type
  @response_type = response_type
  instance_eval(&options_block) if options_block
end

Instance Attribute Details

#methodObject (readonly)

Returns the value of attribute method.



6
7
8
# File 'lib/protobuf/rpc/rpc_method.rb', line 6

def method
  @method
end

#request_typeObject (readonly)

Returns the value of attribute request_type.



6
7
8
# File 'lib/protobuf/rpc/rpc_method.rb', line 6

def request_type
  @request_type
end

#response_typeObject (readonly)

Returns the value of attribute response_type.



6
7
8
# File 'lib/protobuf/rpc/rpc_method.rb', line 6

def response_type
  @response_type
end