Class: Subspace::Inventory::Group

Inherits:
Object
  • Object
show all
Defined in:
lib/subspace/inventory.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_listObject

Returns the value of attribute host_list.



136
137
138
# File 'lib/subspace/inventory.rb', line 136

def host_list
  @host_list
end

#nameObject

Returns the value of attribute name.



136
137
138
# File 'lib/subspace/inventory.rb', line 136

def name
  @name
end

#varsObject

Returns the value of attribute vars.



136
137
138
# File 'lib/subspace/inventory.rb', line 136

def vars
  @vars
end