class Rodzilla::JsonRpc::Response
Attributes
error[RW]
id[RW]
result[RW]
Public Class Methods
new()
click to toggle source
# File lib/rodzilla/json_rpc/response.rb, line 6 def initialize @error = nil end
Public Instance Methods
read_http_response(http_response)
click to toggle source
# File lib/rodzilla/json_rpc/response.rb, line 10 def read_http_response(http_response) body = http_response.parsed_response @id = body["id"] @error = body["error"] @result = body["result"] self end