Class: Construqt::Regions::Region

Inherits:
Object
  • Object
show all
Defined in:
lib/construqt/regions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, network) ⇒ Region

Returns a new instance of Region.



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/construqt/regions.rb', line 7

def initialize(name, network)
  @name = name
  @network = network
  @vlans = Construqt::Vlans.new(self)
  @hosts = Construqt::Hosts.new(self)
  @interfaces = Construqt::Interfaces.new(self)
  @templates = Construqt::Templates.new(self)
  @users = Construqt::Users.new(self)
  @cables = Construqt::Cables.new(self)
  @services = Construqt::Services.new(self)
  @resources = Construqt::Resources.new(self)
end

Instance Attribute Details

#cablesObject (readonly)

Returns the value of attribute cables.



6
7
8
# File 'lib/construqt/regions.rb', line 6

def cables
  @cables
end

#hostsObject (readonly)

Returns the value of attribute hosts.



6
7
8
# File 'lib/construqt/regions.rb', line 6

def hosts
  @hosts
end

#interfacesObject (readonly)

Returns the value of attribute interfaces.



6
7
8
# File 'lib/construqt/regions.rb', line 6

def interfaces
  @interfaces
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/construqt/regions.rb', line 6

def name
  @name
end

#networkObject (readonly)

Returns the value of attribute network.



6
7
8
# File 'lib/construqt/regions.rb', line 6

def network
  @network
end

#resourcesObject (readonly)

Returns the value of attribute resources.



6
7
8
# File 'lib/construqt/regions.rb', line 6

def resources
  @resources
end

#servicesObject (readonly)

Returns the value of attribute services.



6
7
8
# File 'lib/construqt/regions.rb', line 6

def services
  @services
end

#templatesObject (readonly)

Returns the value of attribute templates.



6
7
8
# File 'lib/construqt/regions.rb', line 6

def templates
  @templates
end

#usersObject (readonly)

Returns the value of attribute users.



6
7
8
# File 'lib/construqt/regions.rb', line 6

def users
  @users
end

#vlansObject (readonly)

Returns the value of attribute vlans.



6
7
8
# File 'lib/construqt/regions.rb', line 6

def vlans
  @vlans
end