class JsonClient::Response
Attributes
raw_response[R]
Public Class Methods
new(raw_response)
click to toggle source
# File lib/json_client/response.rb, line 5 def initialize(raw_response) @raw_response = raw_response end
Public Instance Methods
json()
click to toggle source
# File lib/json_client/response.rb, line 13 def json parse_json end
method_missing(name, *args)
click to toggle source
# File lib/json_client/response.rb, line 9 def method_missing(name, *args) raw_response.public_send(name, *args) end
Protected Instance Methods
parse_json()
click to toggle source
# File lib/json_client/response.rb, line 19 def parse_json @parse_json ||= JSON.parse(body) end