lib/punchblock/component/asterisk/agi/command.rb in punchblock-1.8.2 vs lib/punchblock/component/asterisk/agi/command.rb in punchblock-1.9.0
- old
+ new
@@ -84,20 +84,9 @@
class Complete
class Success < Event::Complete::Reason
register :success, :agi_complete
- def self.new(options = {})
- super().tap do |new_node|
- case options
- when Nokogiri::XML::Node
- new_node.inherit options
- else
- options.each_pair { |k,v| new_node.send :"#{k}=", v }
- end
- end
- end
-
def node_with_name(name)
n = if self.class.registered_ns
find_first "ns:#{name}", :ns => self.class.registered_ns
else
find_first name