class OpenscapParser::Rule
Public Instance Methods
description()
click to toggle source
# File lib/openscap_parser/rule.rb, line 29 def description @description ||= newline_to_whitespace( parsed_xml.at_css('description') && parsed_xml.at_css('description').text || '' ) end
id()
click to toggle source
# File lib/openscap_parser/rule.rb, line 12 def id @id ||= parsed_xml['id'] end
identifier_node()
click to toggle source
# File lib/openscap_parser/rule.rb, line 53 def identifier_node @identifier_node ||= parsed_xml.at_xpath('ident') end
rationale()
click to toggle source
# File lib/openscap_parser/rule.rb, line 36 def rationale @rationale ||= newline_to_whitespace( parsed_xml.at_css('rationale') && parsed_xml.at_css('rationale').text || '' ) end
rule_identifier()
click to toggle source
# File lib/openscap_parser/rule.rb, line 48 def rule_identifier @identifier ||= RuleIdentifier.new(parsed_xml: identifier_node) end
Also aliased as: identifier
rule_reference_nodes(xpath = "reference")
click to toggle source
# File lib/openscap_parser/rule.rb, line 44 def rule_reference_nodes(xpath = "reference") rule_reference_nodes_old(xpath) end
Also aliased as: rule_reference_nodes_old
selected()
click to toggle source
# File lib/openscap_parser/rule.rb, line 16 def selected @selected ||= parsed_xml['selected'] end
severity()
click to toggle source
# File lib/openscap_parser/rule.rb, line 20 def severity @severity ||= parsed_xml['severity'] end
title()
click to toggle source
# File lib/openscap_parser/rule.rb, line 24 def title @title ||= parsed_xml.at_css('title') && parsed_xml.at_css('title').text end