Class: Harbr::Container
- Inherits:
-
Object
- Object
- Harbr::Container
- Includes:
- Dddr::Entity
- Defined in:
- lib/harbr/container.rb
Instance Attribute Summary collapse
-
#hosts ⇒ Object
Returns the value of attribute hosts.
-
#ip ⇒ Object
Returns the value of attribute ip.
-
#name ⇒ Object
Returns the value of attribute name.
-
#ports ⇒ Object
Returns the value of attribute ports.
Instance Method Summary collapse
-
#initialize ⇒ Container
constructor
A new instance of Container.
Constructor Details
#initialize ⇒ Container
Returns a new instance of Container.
5 6 7 8 |
# File 'lib/harbr/container.rb', line 5 def initialize @hosts = [] @ports = [] end |
Instance Attribute Details
#hosts ⇒ Object
Returns the value of attribute hosts.
13 14 15 |
# File 'lib/harbr/container.rb', line 13 def hosts @hosts end |
#ip ⇒ Object
Returns the value of attribute ip.
10 11 12 |
# File 'lib/harbr/container.rb', line 10 def ip @ip end |
#name ⇒ Object
Returns the value of attribute name.
10 11 12 |
# File 'lib/harbr/container.rb', line 10 def name @name end |
#ports ⇒ Object
Returns the value of attribute ports.
16 17 18 |
# File 'lib/harbr/container.rb', line 16 def ports @ports end |