Class: Construqt::Regions::Region
- Inherits:
-
Object
- Object
- Construqt::Regions::Region
- Defined in:
- lib/construqt/regions.rb
Instance Attribute Summary collapse
-
#cables ⇒ Object
readonly
Returns the value of attribute cables.
-
#hosts ⇒ Object
readonly
Returns the value of attribute hosts.
-
#interfaces ⇒ Object
readonly
Returns the value of attribute interfaces.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#network ⇒ Object
readonly
Returns the value of attribute network.
-
#resources ⇒ Object
readonly
Returns the value of attribute resources.
-
#services ⇒ Object
readonly
Returns the value of attribute services.
-
#templates ⇒ Object
readonly
Returns the value of attribute templates.
-
#users ⇒ Object
readonly
Returns the value of attribute users.
-
#vlans ⇒ Object
readonly
Returns the value of attribute vlans.
Instance Method Summary collapse
-
#initialize(name, network) ⇒ Region
constructor
A new instance of Region.
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
#cables ⇒ Object (readonly)
Returns the value of attribute cables.
6 7 8 |
# File 'lib/construqt/regions.rb', line 6 def cables @cables end |
#hosts ⇒ Object (readonly)
Returns the value of attribute hosts.
6 7 8 |
# File 'lib/construqt/regions.rb', line 6 def hosts @hosts end |
#interfaces ⇒ Object (readonly)
Returns the value of attribute interfaces.
6 7 8 |
# File 'lib/construqt/regions.rb', line 6 def interfaces @interfaces end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/construqt/regions.rb', line 6 def name @name end |
#network ⇒ Object (readonly)
Returns the value of attribute network.
6 7 8 |
# File 'lib/construqt/regions.rb', line 6 def network @network end |
#resources ⇒ Object (readonly)
Returns the value of attribute resources.
6 7 8 |
# File 'lib/construqt/regions.rb', line 6 def resources @resources end |
#services ⇒ Object (readonly)
Returns the value of attribute services.
6 7 8 |
# File 'lib/construqt/regions.rb', line 6 def services @services end |
#templates ⇒ Object (readonly)
Returns the value of attribute templates.
6 7 8 |
# File 'lib/construqt/regions.rb', line 6 def templates @templates end |
#users ⇒ Object (readonly)
Returns the value of attribute users.
6 7 8 |
# File 'lib/construqt/regions.rb', line 6 def users @users end |
#vlans ⇒ Object (readonly)
Returns the value of attribute vlans.
6 7 8 |
# File 'lib/construqt/regions.rb', line 6 def vlans @vlans end |