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.



92
93
94
95
# File 'lib/ansible/inventory.rb', line 92

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



91
92
93
# File 'lib/ansible/inventory.rb', line 91

def name
  @name
end

#varsObject

Returns the value of attribute vars

Returns:

  • (Object)

    the current value of vars



91
92
93
# File 'lib/ansible/inventory.rb', line 91

def vars
  @vars
end