Class: Trevosdk::TransportResponse
- Inherits:
-
Struct
- Object
- Struct
- Trevosdk::TransportResponse
- Defined in:
- lib/trevosdk/transport.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
26 27 28 |
# File 'lib/trevosdk/transport.rb', line 26 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers
26 27 28 |
# File 'lib/trevosdk/transport.rb', line 26 def headers @headers end |
#status ⇒ Object
Returns the value of attribute status
26 27 28 |
# File 'lib/trevosdk/transport.rb', line 26 def status @status end |
Instance Method Details
#json ⇒ Object
27 28 29 |
# File 'lib/trevosdk/transport.rb', line 27 def json JSON.parse(body.to_s) end |