Class: AbideDevUtils::XCCDF::Control
- Inherits:
-
XccdfElement
- Object
- XccdfElement
- AbideDevUtils::XCCDF::Control
- 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
-
#initialize(control, parent_level: nil) ⇒ Control
constructor
A new instance of Control.
Methods inherited from XccdfElement
#hiera_title, #reference, #to_h, #to_s
Methods included from Common
#==, #abide_object?, #control_parts, #control_profile_text, #default_diff_opts, #diff, #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.
647 648 649 650 651 |
# File 'lib/abide_dev_utils/xccdf.rb', line 647 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 |