JSON::RPC::Request(T)
A single JSON-RPC 2.0 request object.
T is the type of the params member; it can be any JSON-serializable
value (a NamedTuple, Hash, Array, JSON::Any, …) or Nil to omit
params entirely. When id is nil the request is a notification and
the peer must not send a response.
Constructors
Instance methods
Serializes the request, omitting params when it is nil and omitting
id for notifications, as required by the specification.