Class: MingleEvents::Xml::Element
- Inherits:
-
Object
- Object
- MingleEvents::Xml::Element
- Defined in:
- lib/mingle_events/xml.rb
Instance Attribute Summary collapse
-
#namespaces ⇒ Object
readonly
Returns the value of attribute namespaces.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(node, namespaces) ⇒ Element
constructor
A new instance of Element.
- #nil? ⇒ Boolean
Constructor Details
#initialize(node, namespaces) ⇒ Element
Returns a new instance of Element.
6 7 8 9 |
# File 'lib/mingle_events/xml.rb', line 6 def initialize(node, namespaces) @node = node @namespaces = namespaces end |
Instance Attribute Details
#namespaces ⇒ Object (readonly)
Returns the value of attribute namespaces.
5 6 7 |
# File 'lib/mingle_events/xml.rb', line 5 def namespaces @namespaces end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
5 6 7 |
# File 'lib/mingle_events/xml.rb', line 5 def node @node end |
Instance Method Details
#nil? ⇒ Boolean
11 12 13 |
# File 'lib/mingle_events/xml.rb', line 11 def nil? @node.nil? end |