Class: DockerCloud::Helpers::ContainerPorts
- Inherits:
-
Object
- Object
- DockerCloud::Helpers::ContainerPorts
- Defined in:
- lib/docker_cloud/helpers.rb
Instance Attribute Summary collapse
-
#endpoint_uri ⇒ Object
Returns the value of attribute endpoint_uri.
-
#inner_port ⇒ Object
Returns the value of attribute inner_port.
-
#outer_port ⇒ Object
Returns the value of attribute outer_port.
-
#port_name ⇒ Object
Returns the value of attribute port_name.
-
#protocol ⇒ Object
Returns the value of attribute protocol.
-
#published ⇒ Object
Returns the value of attribute published.
-
#uri_protocol ⇒ Object
Returns the value of attribute uri_protocol.
Instance Method Summary collapse
-
#initialize(container_ports) ⇒ ContainerPorts
constructor
A new instance of ContainerPorts.
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_uri ⇒ Object
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_port ⇒ Object
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_port ⇒ Object
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_name ⇒ Object
Returns the value of attribute port_name.
4 5 6 |
# File 'lib/docker_cloud/helpers.rb', line 4 def port_name @port_name end |
#protocol ⇒ Object
Returns the value of attribute protocol.
4 5 6 |
# File 'lib/docker_cloud/helpers.rb', line 4 def protocol @protocol end |
#published ⇒ Object
Returns the value of attribute published.
4 5 6 |
# File 'lib/docker_cloud/helpers.rb', line 4 def published @published end |
#uri_protocol ⇒ Object
Returns the value of attribute uri_protocol.
4 5 6 |
# File 'lib/docker_cloud/helpers.rb', line 4 def uri_protocol @uri_protocol end |