Class: Punchblock::Component::Asterisk::AGI::Command::Complete::Success
- Inherits:
-
Event::Complete::Reason
- Object
- RayoNode
- Event
- Event::Complete::Reason
- Punchblock::Component::Asterisk::AGI::Command::Complete::Success
- Defined in:
- lib/punchblock/component/asterisk/agi/command.rb
Instance Attribute Summary
Attributes inherited from RayoNode
#client, #connection, #original_component
Instance Method Summary collapse
Methods inherited from RayoNode
#==, class_from_registration, from_xml, #inspect, #rayo_attributes, #rayo_children, register, #source, #to_rayo, #to_xml
Instance Method Details
#inherit(xml_node) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/punchblock/component/asterisk/agi/command.rb', line 28 def inherit(xml_node) [:code, :result, :data].each do |attr| node = xml_node.at_xpath "ns:#{attr}", ns: self.class.registered_ns self.send "#{attr}=", node.text if node end super end |