class Fire::Connection::Response

Attributes

path[R]
raw_response[R]

Public Class Methods

new(raw_response, path) click to toggle source
# File lib/connection/response.rb, line 9
def initialize(raw_response, path)
  @raw_response = raw_response
  @path = path
  Fire.logger.response(@raw_response, path)
end

Public Instance Methods

body() click to toggle source
# File lib/connection/response.rb, line 15
def body
  JSON.parse(raw_response.body, :quirks_mode => true)
end