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