Class: Ansible::Inventory::Host
- Inherits:
-
Struct
- Object
- Struct
- Ansible::Inventory::Host
- Defined in:
- lib/ansible/inventory.rb
Defined Under Namespace
Classes: Collection
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#vars ⇒ Object
Returns the value of attribute vars.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Host
constructor
A new instance of Host.
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
#name ⇒ Object
Returns the value of attribute name
91 92 93 |
# File 'lib/ansible/inventory.rb', line 91 def name @name end |
#vars ⇒ Object
Returns the value of attribute vars
91 92 93 |
# File 'lib/ansible/inventory.rb', line 91 def vars @vars end |