Class: Docker2plantuml::PortInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/docker2plantuml/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_portObject

Returns the value of attribute container_port.



29
30
31
# File 'lib/docker2plantuml/model.rb', line 29

def container_port
  @container_port
end

#host_portObject

Returns the value of attribute host_port.



29
30
31
# File 'lib/docker2plantuml/model.rb', line 29

def host_port
  @host_port
end