Class: Docker2plantuml::DockerContainer
- Inherits:
-
Object
- Object
- Docker2plantuml::DockerContainer
- Defined in:
- lib/docker2plantuml/model.rb
Instance Attribute Summary collapse
-
#container_name ⇒ Object
Returns the value of attribute container_name.
-
#network_setting ⇒ Object
Returns the value of attribute network_setting.
-
#port_info_list ⇒ Object
Returns the value of attribute port_info_list.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(name, status) ⇒ DockerContainer
constructor
A new instance of DockerContainer.
- #server_port_list ⇒ Object
Constructor Details
#initialize(name, status) ⇒ DockerContainer
Returns a new instance of DockerContainer.
7 8 9 10 11 |
# File 'lib/docker2plantuml/model.rb', line 7 def initialize(name, status) @container_name = name @status = status @port_info_list = [] end |
Instance Attribute Details
#container_name ⇒ Object
Returns the value of attribute container_name.
5 6 7 |
# File 'lib/docker2plantuml/model.rb', line 5 def container_name @container_name end |
#network_setting ⇒ Object
Returns the value of attribute network_setting.
5 6 7 |
# File 'lib/docker2plantuml/model.rb', line 5 def network_setting @network_setting end |
#port_info_list ⇒ Object
Returns the value of attribute port_info_list.
5 6 7 |
# File 'lib/docker2plantuml/model.rb', line 5 def port_info_list @port_info_list end |
#status ⇒ Object
Returns the value of attribute status.
5 6 7 |
# File 'lib/docker2plantuml/model.rb', line 5 def status @status end |
Instance Method Details
#server_port_list ⇒ Object
13 14 15 16 17 |
# File 'lib/docker2plantuml/model.rb', line 13 def server_port_list @port_info_list .map(&:host_port) .select { |p| p.is_a? String } end |