Class: Fire::Connection::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/connection/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Response

Returns a new instance of Response.



9
10
11
# File 'lib/connection/response.rb', line 9

def initialize(response)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



6
7
8
# File 'lib/connection/response.rb', line 6

def response
  @response
end

Instance Method Details

#bodyObject



13
14
15
# File 'lib/connection/response.rb', line 13

def body
  JSON.parse(response.body, :quirks_mode => true)
end