Class: Subspace::Inventory::Group
- Inherits:
-
Object
- Object
- Subspace::Inventory::Group
- Defined in:
- lib/subspace/inventory.rb
Instance Attribute Summary collapse
-
#host_list ⇒ Object
Returns the value of attribute host_list.
-
#name ⇒ Object
Returns the value of attribute name.
-
#vars ⇒ Object
Returns the value of attribute vars.
Instance Method Summary collapse
-
#initialize(name, vars: {}, host_list: []) ⇒ Group
constructor
A new instance of Group.
Constructor Details
#initialize(name, vars: {}, host_list: []) ⇒ Group
Returns a new instance of Group.
137 138 139 140 141 |
# File 'lib/subspace/inventory.rb', line 137 def initialize(name, vars: {}, host_list: []) @name = name @vars = vars @host_list = host_list end |
Instance Attribute Details
#host_list ⇒ Object
Returns the value of attribute host_list.
136 137 138 |
# File 'lib/subspace/inventory.rb', line 136 def host_list @host_list end |
#name ⇒ Object
Returns the value of attribute name.
136 137 138 |
# File 'lib/subspace/inventory.rb', line 136 def name @name end |
#vars ⇒ Object
Returns the value of attribute vars.
136 137 138 |
# File 'lib/subspace/inventory.rb', line 136 def vars @vars end |