class Ansible::Inventory::Host

Public Class Methods

new(name, hash = {}) click to toggle source
Calls superclass method
# File lib/ansible/inventory.rb, line 92
def initialize(name, hash = {})
  super(name)
  self.vars = ActiveSupport::HashWithIndifferentAccess.new(hash)
end

Public Instance Methods

==(other) click to toggle source
# File lib/ansible/inventory.rb, line 96
def ==(other)
  (name == other.name) && (vars == other.vars)
end