class OpenscapParser::Benchmark

Public Instance Methods

description() click to toggle source
# File lib/openscap_parser/benchmark.rb, line 26
def description
  @description ||= newline_to_whitespace(
    @parsed_xml.xpath('description') &&
      @parsed_xml.xpath('description').text || ''
  )
end
id() click to toggle source
# File lib/openscap_parser/benchmark.rb, line 17
def id
  @id ||= @parsed_xml['id']
end
title() click to toggle source
# File lib/openscap_parser/benchmark.rb, line 21
def title
  @title ||= @parsed_xml.xpath('title') &&
    @parsed_xml.xpath('title').text
end
version() click to toggle source
# File lib/openscap_parser/benchmark.rb, line 33
def version
  @version ||= @parsed_xml.xpath('version') &&
    @parsed_xml.xpath('version').text
end