Class: AbideDevUtils::XCCDF::Parser::Objects::MetadataCisControlsFrameworkSafeguard

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

Overview

Class for XCCDF rule metadata cis_controls framework safeguard

Instance Attribute Summary

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, #label, #method_missing, #respond_to_missing?, #xccdf_type

Methods included from Helpers::XPath

#find_element

Methods included from Helpers::ElementChildren

#search_children

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) ⇒ MetadataCisControlsFrameworkSafeguard

Returns a new instance of MetadataCisControlsFrameworkSafeguard.



438
439
440
441
442
443
444
445
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 438

def initialize(element)
  super
  add_child(ShortText, element['title'])
  add_child(ShortText, element['urn'])
  new_implementation_groups(element)
  add_child(ShortText, find_element.at_xpath(element, 'asset_type').text)
  add_child(ShortText, find_element.at_xpath(element, 'security_function').text)
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

.xmlnsObject



451
452
453
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 451

def self.xmlns
  'controls'
end

.xpathObject



447
448
449
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 447

def self.xpath
  'safeguard'
end