class Rack::RPC::Endpoint::JSONRPC::Notification

JSON-RPC notification objects.

Attributes

method[RW]
params[RW]
version[RW]

Public Instance Methods

to_hash() click to toggle source

@return [Hash]

# File lib/rack/rpc/endpoint/jsonrpc.rb, line 157
def to_hash
  {
    :jsonrpc => (version || VERSION).to_s,
    :method  => method.to_s,
    :params  => params ? params.to_a : [], # NOTE: named arguments not supported
  }
end
valid?() click to toggle source

@return [Boolean]

# File lib/rack/rpc/endpoint/jsonrpc.rb, line 151
def valid?
  true # TODO
end