Class: Docker2plantuml::PortInfo
- Inherits:
-
Object
- Object
- Docker2plantuml::PortInfo
- Defined in:
- lib/docker2plantuml/model.rb
Instance Attribute Summary collapse
-
#container_port ⇒ Object
Returns the value of attribute container_port.
-
#host_port ⇒ Object
Returns the value of attribute host_port.
Instance Method Summary collapse
-
#initialize(port, host_port = nil) ⇒ PortInfo
constructor
A new instance of PortInfo.
Constructor Details
#initialize(port, host_port = nil) ⇒ PortInfo
Returns a new instance of PortInfo.
31 32 33 34 |
# File 'lib/docker2plantuml/model.rb', line 31 def initialize(port, host_port = nil) @container_port = port @host_port = host_port end |
Instance Attribute Details
#container_port ⇒ Object
Returns the value of attribute container_port.
29 30 31 |
# File 'lib/docker2plantuml/model.rb', line 29 def container_port @container_port end |
#host_port ⇒ Object
Returns the value of attribute host_port.
29 30 31 |
# File 'lib/docker2plantuml/model.rb', line 29 def host_port @host_port end |