Method: QRPC::Protocol::JsonRpc::Request.parse

Defined in:
lib/qrpc/protocol/json-rpc/request.rb

.parse(raw) ⇒ Request

Parses the data for new object.

Parameters:

  • raw (String)

    raw data

Returns:

  • (Request)

    new request according to data

Since:

  • 0.9.0



50
51
52
53
54
# File 'lib/qrpc/protocol/json-rpc/request.rb', line 50

def self.parse(raw)
    object = self::new 
    object.native = JsonRpcObjects::Request::parse(raw, :wd, self::options.serializer)
    return object
end