Skip to content

Instantly share code, notes, and snippets.

@juandebravo
Created October 30, 2011 17:05
Show Gist options
  • Save juandebravo/1326125 to your computer and use it in GitHub Desktop.
Save juandebravo/1326125 to your computer and use it in GitHub Desktop.
class AhnPluginDemo < Adhearsion::Plugin
dialplan :foo
dialplan [:bar, :bazz]
dialplan :ahn_plugin_demo do |call|
logger.debug call.to_s
end
def bazz(call)
logger.debug call.to_s
end
class << self
def bar(call)
logger.debug call.to_s
end
def foo(call)
logger.debug call.to_s
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment