class OpenscapParser::Tailoring

Public Instance Methods

benchmark() click to toggle source
# File lib/openscap_parser/tailoring.rb, line 12
def benchmark
  @benchmark ||= @parsed_xml.at_xpath('benchmark/@href') &&
    @parsed_xml.at_xpath('benchmark/@href').text
end
id() click to toggle source
# File lib/openscap_parser/tailoring.rb, line 8
def id
  @id ||= @parsed_xml['id']
end
version() click to toggle source
# File lib/openscap_parser/tailoring.rb, line 17
def version
  @version ||= @parsed_xml.at_xpath('version') &&
    @parsed_xml.at_xpath('version').text
end
version_time() click to toggle source
# File lib/openscap_parser/tailoring.rb, line 22
def version_time
  @version_time ||= @parsed_xml.at_xpath('version/@time') &&
    @parsed_xml.at_xpath('version/@time').text
end