class Punchblock::Event::Asterisk::AMI::Event
Public Instance Methods
inherit(xml_node)
click to toggle source
Calls superclass method
# File lib/punchblock/event/asterisk/ami/event.rb, line 15 def inherit(xml_node) xml_node.xpath('//ns:attribute', ns: self.class.registered_ns).to_a.each do |attribute| headers[attribute[:name]] = attribute[:value] end super end
rayo_attributes()
click to toggle source
# File lib/punchblock/event/asterisk/ami/event.rb, line 22 def rayo_attributes {'name' => name} end
rayo_children(root)
click to toggle source
Calls superclass method
# File lib/punchblock/event/asterisk/ami/event.rb, line 26 def rayo_children(root) super headers.each do |name, value| root.attribute name: name, value: value end end