Class: AbideDevUtils::XCCDF::Parser::Objects::Platform
- Inherits:
 - 
      ElementBase
      
        
- Object
 - ElementBase
 - AbideDevUtils::XCCDF::Parser::Objects::Platform
 
 
- Defined in:
 - lib/abide_dev_utils/xccdf/parser/objects.rb
 
Overview
Class for XCCDF benchmark platform
Constant Summary
Constants inherited from ElementBase
Instance Attribute Summary
Attributes inherited from ElementBase
#child_labels, #children, #link_labels, #links, #parent
Class Method Summary collapse
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean
 - #hash ⇒ Object
 - 
  
    
      #initialize(element, parent_node: nil)  ⇒ Platform 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Platform.
 - #to_s ⇒ Object
 
Methods inherited from ElementBase
#<=>, #add_link, #add_links, #all_values, #ancestors, #depth, #descendants, #find_similarity, #inspect, #label, #leaf?, #print_tree, #root, #root?, #siblings, #xccdf_type, xmlns
Methods included from Helpers::XPath
Methods included from DiffableObject
#check_diffable!, #correlate_added_removed, #diff, #diff_ambiguous, #diff_array_obj, #diff_benchmark, #diff_change_result, #diff_check, #diff_complex_check, #diff_group, #diff_plain_obj, #diff_profile, #diff_rule, #diff_str_obj, #diff_value, #diff_xccdf_select, #process_details_hash!, #result_from_details_hash
Constructor Details
#initialize(element, parent_node: nil) ⇒ Platform
Returns a new instance of Platform.
      928 929 930 931  | 
    
      # File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 928 def initialize(element, parent_node: nil) super add_child(AttributeValue, element, 'idref') end  | 
  
Class Method Details
.xpath ⇒ Object
      941 942 943  | 
    
      # File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 941 def self.xpath 'platform' end  | 
  
Instance Method Details
#eql?(other) ⇒ Boolean
      933 934 935  | 
    
      # File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 933 def eql?(other) to_s == other.to_s end  | 
  
#hash ⇒ Object
      937 938 939  | 
    
      # File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 937 def hash to_s.hash end  | 
  
#to_s ⇒ Object
      945 946 947  | 
    
      # File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 945 def to_s idref.to_s end  |