Class: OpenscapParser::Sub
Instance Attribute Summary
Attributes inherited from XmlNode
#namespaces
Instance Method Summary
collapse
Methods inherited from XmlNode
#initialize, #parsed_xml, #text, #xpath_node, #xpath_nodes
Instance Method Details
#id ⇒ Object
6
7
8
|
# File 'lib/openscap_parser/sub.rb', line 6
def id
@id ||= @parsed_xml['idref']
end
|
#to_h ⇒ Object
14
15
16
|
# File 'lib/openscap_parser/sub.rb', line 14
def to_h
{ :id => id, :text => text, :use => use }
end
|
#use ⇒ Object
10
11
12
|
# File 'lib/openscap_parser/sub.rb', line 10
def use
@use ||= @parsed_xml['use']
end
|