class Infurarb::Response
Attributes
http_response[R]
request[R]
Public Class Methods
new(http_response, request)
click to toggle source
# File lib/infurarb/response.rb, line 4 def initialize(http_response, request) @http_response = http_response @request = request end
Public Instance Methods
body()
click to toggle source
# File lib/infurarb/response.rb, line 9 def body @body ||= JSON.parse(http_response.body.readpartial) end