class OpenscapParser::Benchmark

Public Instance Methods

description() click to toggle source
# File lib/openscap_parser/benchmark.rb, line 25
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 16
def id
  @id ||= @parsed_xml['id']
end
title() click to toggle source
# File lib/openscap_parser/benchmark.rb, line 20
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 32
def version
  @version ||= @parsed_xml.xpath('version') &&
    @parsed_xml.xpath('version').text
end