Class: DockerCloud::Helpers::ContainerPorts

Inherits:
Object
  • Object
show all
Defined in:
lib/docker_cloud/helpers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(container_ports) ⇒ ContainerPorts

Returns a new instance of ContainerPorts.



7
8
9
10
11
12
13
14
15
# File 'lib/docker_cloud/helpers.rb', line 7

def initialize(container_ports)
  @protocol = container_ports[:protocol]
  @inner_port = container_ports[:inner_port]
  @outer_port = container_ports[:outer_port]
  @port_name = container_ports[:outer_port]
  @uri_protocol = container_ports[:uri_protocol]
  @endpoint_uri = container_ports[:endpoint_uri]
  @published = container_ports[:published]
end

Instance Attribute Details

#endpoint_uriObject

Returns the value of attribute endpoint_uri.



4
5
6
# File 'lib/docker_cloud/helpers.rb', line 4

def endpoint_uri
  @endpoint_uri
end

#inner_portObject

Returns the value of attribute inner_port.



4
5
6
# File 'lib/docker_cloud/helpers.rb', line 4

def inner_port
  @inner_port
end

#outer_portObject

Returns the value of attribute outer_port.



4
5
6
# File 'lib/docker_cloud/helpers.rb', line 4

def outer_port
  @outer_port
end

#port_nameObject

Returns the value of attribute port_name.



4
5
6
# File 'lib/docker_cloud/helpers.rb', line 4

def port_name
  @port_name
end

#protocolObject

Returns the value of attribute protocol.



4
5
6
# File 'lib/docker_cloud/helpers.rb', line 4

def protocol
  @protocol
end

#publishedObject

Returns the value of attribute published.



4
5
6
# File 'lib/docker_cloud/helpers.rb', line 4

def published
  @published
end

#uri_protocolObject

Returns the value of attribute uri_protocol.



4
5
6
# File 'lib/docker_cloud/helpers.rb', line 4

def uri_protocol
  @uri_protocol
end