diff --git a/lib/openscap_parser/group.rb b/lib/openscap_parser/group.rb index 3b7710f..44e74b6 100644 --- a/lib/openscap_parser/group.rb +++ b/lib/openscap_parser/group.rb @@ -48,6 +48,10 @@ def parent_id @parent_id = parsed_xml.xpath('../@id').to_s end + def parent_ids + @parent_ids = parsed_xml.xpath('ancestor::Group/@id').map(&:value) + end + def parent_type if parsed_xml.xpath("name(..)='Group'") @parent_type = 'Group' diff --git a/lib/openscap_parser/version.rb b/lib/openscap_parser/version.rb index 954dc9e..3b2cac3 100644 --- a/lib/openscap_parser/version.rb +++ b/lib/openscap_parser/version.rb @@ -1,3 +1,3 @@ module OpenscapParser - VERSION = "1.3.1" + VERSION = "1.4.0" end