Class: Protobuf::Rpc::RpcMethod
- Inherits:
-
Object
- Object
- Protobuf::Rpc::RpcMethod
- Defined in:
- lib/protobuf/rpc/rpc_method.rb
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#request_type ⇒ Object
readonly
Returns the value of attribute request_type.
-
#response_type ⇒ Object
readonly
Returns the value of attribute response_type.
Instance Method Summary collapse
-
#initialize(method, request_type, response_type, &options_block) ⇒ RpcMethod
constructor
A new instance of RpcMethod.
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, &) @method = method @request_type = request_type @response_type = response_type instance_eval(&) if end |
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
6 7 8 |
# File 'lib/protobuf/rpc/rpc_method.rb', line 6 def method @method end |
#request_type ⇒ Object (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_type ⇒ Object (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 |