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