Class: ChefCLI::Policyfile::AttributeMergeChecker::AttributeHashInfo
- Inherits:
 - 
      Object
      
        
- Object
 - ChefCLI::Policyfile::AttributeMergeChecker::AttributeHashInfo
 
 
- 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
- 
  
    
      #hash  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute hash.
 - 
  
    
      #source_name  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute source_name.
 
Instance Method Summary collapse
- 
  
    
      #initialize(source_name, hash)  ⇒ AttributeHashInfo 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of AttributeHashInfo.
 
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
#hash ⇒ Object (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_name ⇒ Object (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  |