Class: AbideDevUtils::XCCDF::Parser::Objects::ComplexCheck

Inherits:
ElementBase
  • Object
show all
Defined in:
lib/abide_dev_utils/xccdf/parser/objects.rb

Overview

Class for XCCDF rule complex check

Instance Attribute Summary collapse

Attributes inherited from ElementBase

#child_labels, #children, #link_labels

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ElementBase

#add_link, #add_links, #all_values, #find_child_by_attribute, #find_child_by_attribute_value, #find_child_by_class, #find_child_by_xpath, #find_children_by_attribute, #find_children_by_attribute_value, #find_children_by_class, #find_children_by_xpath, #find_children_that_respond_to, #label, #method_missing, #recursive_find_child, #recursive_select_children, #respond_to_missing?, #xccdf_type

Methods included from DigestObject

#digest, #digest_equal?, #digest_similarity, #digestable_instance_variables, #exclude_from_digest, #labeled_self_digest, #non_compatible?, #normalize_exclusion, #sorted_digest_parts, #split_labeled_digest

Constructor Details

#initialize(element, parent: nil) ⇒ ComplexCheck

Returns a new instance of ComplexCheck.



499
500
501
502
503
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 499

def initialize(element, parent: nil)
  super
  add_child(AttributeValue, element, 'operator')
  add_children(Check, element)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class AbideDevUtils::XCCDF::Parser::Objects::ElementBase

Instance Attribute Details

#checkObject (readonly)

Returns the value of attribute check.



497
498
499
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 497

def check
  @check
end

#operatorObject (readonly)

Returns the value of attribute operator.



497
498
499
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 497

def operator
  @operator
end

Class Method Details

.xpathObject



505
506
507
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 505

def self.xpath
  'xccdf:complex-check'
end