Class: OpenscapParser::OvalReport
Instance Attribute Summary
Attributes inherited from XmlNode
#namespaces
Instance Method Summary
collapse
Methods inherited from XmlFile
#initialize
Methods inherited from XmlNode
#initialize, #parsed_xml, #text, #xpath_node, #xpath_nodes
Instance Method Details
#definition_nodes(xpath = "./oval_results/oval_definitions/definitions/definition") ⇒ Object
20
21
22
|
# File 'lib/openscap_parser/oval_report.rb', line 20
def definition_nodes(xpath = "./oval_results/oval_definitions/definitions/definition")
xpath_nodes(xpath)
end
|
#definition_result_nodes(xpath = "./oval_results/results/system/definitions/definition") ⇒ Object
12
13
14
|
# File 'lib/openscap_parser/oval_report.rb', line 12
def definition_result_nodes(xpath = "./oval_results/results/system/definitions/definition")
xpath_nodes(xpath)
end
|
#definition_results ⇒ Object
8
9
10
|
# File 'lib/openscap_parser/oval_report.rb', line 8
def definition_results
@definition_results ||= definition_result_nodes.map { |node| ::Oval::DefinitionResult.new parsed_xml: node }
end
|
#definitions ⇒ Object
16
17
18
|
# File 'lib/openscap_parser/oval_report.rb', line 16
def definitions
@definitions ||= definition_nodes.map { |node| Oval::Definition.new parsed_xml: node }
end
|