Class: FidorApi::Connectivity::Connection::Response
- Inherits:
-
Struct
- Object
- Struct
- FidorApi::Connectivity::Connection::Response
- Defined in:
- lib/fidor_api/connectivity/connection.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#raw_body ⇒ Object
Returns the value of attribute raw_body.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#headers ⇒ Object
Returns the value of attribute headers
6 7 8 |
# File 'lib/fidor_api/connectivity/connection.rb', line 6 def headers @headers end |
#raw_body ⇒ Object
Returns the value of attribute raw_body
6 7 8 |
# File 'lib/fidor_api/connectivity/connection.rb', line 6 def raw_body @raw_body end |
#status ⇒ Object
Returns the value of attribute status
6 7 8 |
# File 'lib/fidor_api/connectivity/connection.rb', line 6 def status @status end |
Instance Method Details
#body ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/fidor_api/connectivity/connection.rb', line 7 def body if headers["content-type"] =~ /json/ JSON.parse(raw_body) else raw_body end end |