Class: Docker::Connection::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/docker/connection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



9
10
11
# File 'lib/docker/connection.rb', line 9

def body
  @body
end

#content_typeObject

Returns the value of attribute content_type

Returns:

  • (Object)

    the current value of content_type



9
10
11
# File 'lib/docker/connection.rb', line 9

def content_type
  @content_type
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



9
10
11
# File 'lib/docker/connection.rb', line 9

def status
  @status
end

#timeoutObject

Returns the value of attribute timeout

Returns:

  • (Object)

    the current value of timeout



9
10
11
# File 'lib/docker/connection.rb', line 9

def timeout
  @timeout
end

Instance Method Details

#body_as_jsonObject



10
11
12
# File 'lib/docker/connection.rb', line 10

def body_as_json
  MultiJson.load(body)
end