Class: Harbr::Container

Inherits:
Object
  • Object
show all
Includes:
Dddr::Entity
Defined in:
lib/harbr/container.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeContainer

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

#hostsObject

Returns the value of attribute hosts.



13
14
15
# File 'lib/harbr/container.rb', line 13

def hosts
  @hosts
end

#ipObject

Returns the value of attribute ip.



10
11
12
# File 'lib/harbr/container.rb', line 10

def ip
  @ip
end

#nameObject

Returns the value of attribute name.



10
11
12
# File 'lib/harbr/container.rb', line 10

def name
  @name
end

#portsObject

Returns the value of attribute ports.



16
17
18
# File 'lib/harbr/container.rb', line 16

def ports
  @ports
end