Class: AbideDevUtils::XCCDF::Parser::Objects::MetadataCisControlsFramework
- Inherits:
-
ElementBase
- Object
- ElementBase
- AbideDevUtils::XCCDF::Parser::Objects::MetadataCisControlsFramework
- Defined in:
- lib/abide_dev_utils/xccdf/parser/objects.rb
Overview
Class for XCCDF rule metadata cis_controls framework
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) ⇒ MetadataCisControlsFramework
constructor
A new instance of MetadataCisControlsFramework.
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
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) ⇒ MetadataCisControlsFramework
Returns a new instance of MetadataCisControlsFramework.
684 685 686 687 688 |
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 684 def initialize(element, parent_node: nil) super add_child(AttributeValue, element, 'urn') add_children(MetadataCisControlsFrameworkSafeguard, element) end |
Class Method Details
.xmlns ⇒ Object
702 703 704 |
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 702 def self.xmlns 'controls' end |
.xpath ⇒ Object
698 699 700 |
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 698 def self.xpath 'framework' end |
Instance Method Details
#eql?(other) ⇒ Boolean
690 691 692 |
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 690 def eql?(other) @children.map(&:to_s).join == other.children.map(&:to_s).join end |
#hash ⇒ Object
694 695 696 |
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 694 def hash @children.map(&:hash).join.hash end |