Module: KRPC::Gen::RPCMethodGenerator
- Included in:
- Services::Core
- Defined in:
- lib/krpc/gen.rb
Instance Method Summary collapse
Instance Method Details
#include_rpc_method(method_name, service_name, procedure_name, params: [], return_type: nil, attributes: [], xmldoc: "", switches: [], options: {}) ⇒ Object
113 114 115 |
# File 'lib/krpc/gen.rb', line 113 def include_rpc_method(method_name, service_name, procedure_name, params: [], return_type: nil, attributes: [], xmldoc: "", switches: [], options: {}) Gen.add_rpc_method(self.class, method_name, service_name, PB::Procedure.new(name: procedure_name, parameters: params, has_return_type: return_type != nil, return_type: return_type != nil ? return_type : "", attributes: attributes, documentation: xmldoc), *switches, **) end |