Class: Docker::Connection::Response
- Inherits:
-
Struct
- Object
- Struct
- Docker::Connection::Response
- Defined in:
- lib/docker/connection.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#status ⇒ Object
Returns the value of attribute status.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
9 10 11 |
# File 'lib/docker/connection.rb', line 9 def body @body end |
#content_type ⇒ Object
Returns the value of attribute content_type
9 10 11 |
# File 'lib/docker/connection.rb', line 9 def content_type @content_type end |
#status ⇒ Object
Returns the value of attribute status
9 10 11 |
# File 'lib/docker/connection.rb', line 9 def status @status end |
#timeout ⇒ Object
Returns the value of attribute timeout
9 10 11 |
# File 'lib/docker/connection.rb', line 9 def timeout @timeout end |
Instance Method Details
#body_as_json ⇒ Object
10 11 12 |
# File 'lib/docker/connection.rb', line 10 def body_as_json MultiJson.load(body) end |