Class: MingleEvents::Xml::Element

Inherits:
Object
  • Object
show all
Defined in:
lib/mingle_events/xml.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#namespacesObject (readonly)

Returns the value of attribute namespaces.



5
6
7
# File 'lib/mingle_events/xml.rb', line 5

def namespaces
  @namespaces
end

#nodeObject (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

Returns:

  • (Boolean)


11
12
13
# File 'lib/mingle_events/xml.rb', line 11

def nil?
  @node.nil?
end