Class: Adhearsion::Rayo::Component::Asterisk::AMI::Action::Complete::Success
- Inherits:
-
Event::Complete::Reason
- Object
- RayoNode
- Event
- Event::Complete::Reason
- Adhearsion::Rayo::Component::Asterisk::AMI::Action::Complete::Success
- Defined in:
- lib/adhearsion/rayo/component/asterisk/ami/action.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
42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/adhearsion/rayo/component/asterisk/ami/action.rb', line 42 def inherit(xml_node) = xml_node.at_xpath 'ns:message', ns: self.class.registered_ns self. = .text if text_body_node = xml_node.at_xpath 'ns:text-body', ns: self.class.registered_ns self.text_body = text_body_node.text if text_body_node xml_node.xpath('//ns:attribute', ns: self.class.registered_ns).to_a.each do |attribute| headers[attribute[:name]] = attribute[:value] end super end |