Class: AbideDevUtils::XCCDF::Control

Inherits:
XccdfElement show all
Defined in:
lib/abide_dev_utils/xccdf.rb

Constant Summary

Constants included from Common

AbideDevUtils::XCCDF::Common::CIS_CONTROL_NUMBER, AbideDevUtils::XCCDF::Common::CIS_CONTROL_PARTS, AbideDevUtils::XCCDF::Common::CIS_LEVEL_CODE, AbideDevUtils::XCCDF::Common::CIS_NEXT_GEN_WINDOWS, AbideDevUtils::XCCDF::Common::CIS_PROFILE_PARTS, AbideDevUtils::XCCDF::Common::CONTROL_PREFIX, AbideDevUtils::XCCDF::Common::UNDERSCORED, AbideDevUtils::XCCDF::Common::XPATHS

Instance Method Summary collapse

Methods inherited from XccdfElement

#hiera_title, #reference, #to_h, #to_s

Methods included from Common

#==, #abide_object?, #control_parts, #control_profile_text, #name_normalize_control, #normalize_control_name, #normalize_profile_name, #normalize_string, #number_normalize_control, #profile_parts, #sorted_control_classes, #sorted_profile_classes, #text_normalize, #validate_xccdf, #xpath

Constructor Details

#initialize(control, parent_level: nil) ⇒ Control

Returns a new instance of Control.



537
538
539
540
541
# File 'lib/abide_dev_utils/xccdf.rb', line 537

def initialize(control, parent_level: nil)
  super(control)
  @number, @level, @title = control_parts(control_profile_text(control), parent_level: parent_level)
  properties :number, :level, :title
end