class Rack::RPC::Endpoint::JSONRPC::Request
JSON-RPC request objects.
Attributes
id[RW]
Public Instance Methods
to_args()
click to toggle source
@return [Array]
# File lib/rack/rpc/endpoint/jsonrpc.rb, line 187 def to_args # used from Operation#initialize params end
to_hash()
click to toggle source
@return [Hash]
Calls superclass method
Rack::RPC::Endpoint::JSONRPC::Notification#to_hash
# File lib/rack/rpc/endpoint/jsonrpc.rb, line 179 def to_hash super.merge({ :id => id, }) end
valid?()
click to toggle source
@return [Boolean]
Calls superclass method
Rack::RPC::Endpoint::JSONRPC::Notification#valid?
# File lib/rack/rpc/endpoint/jsonrpc.rb, line 173 def valid? super && !id.nil? end