Class: Fire::Connection::Response
- Inherits:
-
Object
- Object
- Fire::Connection::Response
- Defined in:
- lib/connection/response.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
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
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/connection/response.rb', line 6 def response @response end |
Instance Method Details
#body ⇒ Object
13 14 15 |
# File 'lib/connection/response.rb', line 13 def body JSON.parse(response.body, :quirks_mode => true) end |