Class: Ansible::Inventory::Host

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

Defined Under Namespace

Classes: Collection

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Host

Returns a new instance of Host.



79
80
81
82
# File 'lib/ansible/inventory.rb', line 79

def initialize(*args)
  super
  self.vars = {} unless vars
end

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



78
79
80
# File 'lib/ansible/inventory.rb', line 78

def name
  @name
end

#varsObject

Returns the value of attribute vars

Returns:

  • (Object)

    the current value of vars



78
79
80
# File 'lib/ansible/inventory.rb', line 78

def vars
  @vars
end