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 8
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 10
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 14
def benchmark_node(xpath = ".//Benchmark")
  xpath_node(xpath)
end