Module: ActiveRemote::RPC::Embedded::ClassMethods
- Defined in:
- lib/active_remote/rpc.rb
Instance Method Summary collapse
Instance Method Details
#request(rpc_method, request_args) ⇒ Object
:noapi:
21 22 23 24 25 26 27 28 29 |
# File 'lib/active_remote/rpc.rb', line 21 def request(rpc_method, request_args) warn "DEPRECATED Model.request is deprecated and will be removed in Active Remote 3.0. This is handled by the Protobuf RPC adpater now" return request_args unless request_args.is_a?(Hash) = request_type(rpc_method) fields = fields_from_attributes(, request_args) .new(fields) end |
#request_type(rpc_method) ⇒ Object
:noapi:
32 33 34 35 36 |
# File 'lib/active_remote/rpc.rb', line 32 def request_type(rpc_method) warn "DEPRECATED Model.request_type is deprecated and will be removed in Active Remote 3.0. This is handled by the Protobuf RPC adpater now" service_class.rpcs[rpc_method].request_type end |