Module: OpenscapParser::Profiles
Overview
Methods related to saving profiles and finding which hosts they belong to
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/openscap_parser/profiles.rb', line 9 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 |