class Rack::RPC::Endpoint::JSONRPC::Response
JSON-RPC response objects.
Attributes
error[RW]
id[RW]
result[RW]
version[RW]
Public Instance Methods
to_hash()
click to toggle source
@return [Hash]
# File lib/rack/rpc/endpoint/jsonrpc.rb, line 203 def to_hash { :jsonrpc => (version || VERSION).to_s, :result => result, :error => error ? error.to_hash : nil, :id => id, } end