class OpenscapParser::OvalReport

Public Instance Methods

definition_nodes(xpath = "./oval_results/oval_definitions/definitions/definition") click to toggle source
# File lib/openscap_parser/oval_report.rb, line 19
def definition_nodes(xpath = "./oval_results/oval_definitions/definitions/definition")
  xpath_nodes(xpath)
end
definition_result_nodes(xpath = "./oval_results/results/system/definitions/definition") click to toggle source
# File lib/openscap_parser/oval_report.rb, line 11
def definition_result_nodes(xpath = "./oval_results/results/system/definitions/definition")
  xpath_nodes(xpath)
end
definition_results() click to toggle source
# File lib/openscap_parser/oval_report.rb, line 7
def definition_results
  @definition_results ||= definition_result_nodes.map { |node| ::Oval::DefinitionResult.new parsed_xml: node }
end
definitions() click to toggle source
# File lib/openscap_parser/oval_report.rb, line 15
def definitions
  @definitions ||= definition_nodes.map { |node| Oval::Definition.new parsed_xml: node }
end