module OpenscapParser::Profiles
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/profiles.rb, line 8 def self.included(base) base.class_eval do def profiles @profiles ||= profile_nodes.map do |profile_node| OpenscapParser::Profile.new(parsed_xml: profile_node) end end def profile_nodes(xpath = ".//Profile") xpath_nodes(xpath) end end end
Public Instance Methods
profile_nodes(xpath = ".//Profile")
click to toggle source
# File lib/openscap_parser/profiles.rb, line 16 def profile_nodes(xpath = ".//Profile") xpath_nodes(xpath) end
profiles()
click to toggle source
# File lib/openscap_parser/profiles.rb, line 10 def profiles @profiles ||= profile_nodes.map do |profile_node| OpenscapParser::Profile.new(parsed_xml: profile_node) end end