Class: Adhearsion::Rayo::Component::Asterisk::AGI::Command::Complete::Success

Inherits:
Event::Complete::Reason show all
Defined in:
lib/adhearsion/rayo/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



32
33
34
35
36
37
38
# File 'lib/adhearsion/rayo/component/asterisk/agi/command.rb', line 32

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