Class: AbideDevUtils::XCCDF::Parser::Objects::CheckContentRef
- Inherits:
-
ElementBase
- Object
- ElementBase
- AbideDevUtils::XCCDF::Parser::Objects::CheckContentRef
- Defined in:
- lib/abide_dev_utils/xccdf/parser/objects.rb
Overview
Class for XCCDF check-content-ref
Instance Attribute Summary
Attributes inherited from ElementBase
#child_labels, #children, #link_labels
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(element) ⇒ CheckContentRef
constructor
A new instance of CheckContentRef.
- #to_s ⇒ Object
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) ⇒ CheckContentRef
Returns a new instance of CheckContentRef.
423 424 425 426 427 |
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 423 def initialize(element) super add_child(AttributeValue, element, 'href') add_child(AttributeValue, element, 'name') end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class AbideDevUtils::XCCDF::Parser::Objects::ElementBase
Class Method Details
.xpath ⇒ Object
429 430 431 |
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 429 def self.xpath 'xccdf:check-content-ref' end |
Instance Method Details
#to_s ⇒ Object
433 434 435 |
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 433 def to_s [find_child_by_attribute('href').to_s, find_child_by_attribute('name').to_s].join('|') end |