Class: DockerCloud::ContainerStreamAPI

Inherits:
StreamAPI show all
Defined in:
lib/docker_cloud/api/container_stream_api.rb

Constant Summary

Constants inherited from StreamAPI

StreamAPI::STREAM_API_PATH

Constants inherited from API

API::API_VERSION, API::BASE_API_PATH

Instance Attribute Summary

Attributes inherited from API

#client, #headers, #type

Instance Method Summary collapse

Methods inherited from StreamAPI

#on, #run!, #websocket

Methods inherited from API

#get_from_uri, #http_delete, #http_get, #http_patch, #http_post, #parse, #url

Constructor Details

#initialize(uuid, command, headers, client) ⇒ ContainerStreamAPI

Returns a new instance of ContainerStreamAPI.



3
4
5
6
7
# File 'lib/docker_cloud/api/container_stream_api.rb', line 3

def initialize(uuid, command, headers, client)
  @uuid = uuid
  @command = command
  super(headers, DockerCloud::Client::ApiType::CONTAINER, client)
end