Created
October 30, 2011 17:05
-
-
Save juandebravo/1326125 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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