Class: ChefCLI::Policyfile::AttributeMergeChecker::AttributeHashInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/chef-cli/policyfile/attribute_merge_checker.rb

Overview

An AttributeHashInfo holds a set of attributes along with where they came from

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source_name, hash) ⇒ AttributeHashInfo

Returns a new instance of AttributeHashInfo.



53
54
55
56
# File 'lib/chef-cli/policyfile/attribute_merge_checker.rb', line 53

def initialize(source_name, hash)
  @source_name = source_name
  @hash = hash
end

Instance Attribute Details

#hashObject (readonly)

Returns the value of attribute hash.



52
53
54
# File 'lib/chef-cli/policyfile/attribute_merge_checker.rb', line 52

def hash
  @hash
end

#source_nameObject (readonly)

Returns the value of attribute source_name.



51
52
53
# File 'lib/chef-cli/policyfile/attribute_merge_checker.rb', line 51

def source_name
  @source_name
end