Created
January 28, 2013 02:07
-
-
Save bradleyd/4652344 to your computer and use it in GitHub Desktop.
This file contains 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 SuperSecretProjectCallController < Adhearsion::CallController | |
def run | |
answer | |
menu "tt-weasels", timeout: 8.seconds, tries: 3 do | |
foo.each do |k,v| | |
match k, v | |
end | |
timeout { do_this_on_timeout } | |
invalid do | |
invoke InvalidController | |
end | |
failure do | |
speak 'Goodbye' | |
hangup | |
end | |
end | |
end | |
def foo | |
{'1'=> BooController, '2'=> FooController} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment