module OpenscapParser::Benchmarks
Methods related to saving profiles and finding which hosts they belong to
Public Class Methods
included(base)
click to toggle source
# File lib/openscap_parser/benchmarks.rb, line 9 def self.included(base) base.class_eval do def benchmark @benchmark ||= OpenscapParser::Benchmark.new(parsed_xml: benchmark_node) end def benchmark_node(xpath = ".//Benchmark") xpath_node(xpath) end end end
Public Instance Methods
benchmark()
click to toggle source
# File lib/openscap_parser/benchmarks.rb, line 11 def benchmark @benchmark ||= OpenscapParser::Benchmark.new(parsed_xml: benchmark_node) end
benchmark_node(xpath = ".//Benchmark")
click to toggle source
# File lib/openscap_parser/benchmarks.rb, line 15 def benchmark_node(xpath = ".//Benchmark") xpath_node(xpath) end