class FerrisBueller::Web
Private Instance Methods
respond(params)
click to toggle source
# File lib/ferris-bueller/web.rb, line 55 def respond params case params['text'].strip when 'whoami' reply_whoami params when /^help/ reply_help params when '' reply_list params when 'list' reply_list params when 'summary' reply_summary params when /^(\d+)$/ reply_show $1, params when /^show (\d+)/ reply_show $1, params when /^resolve (\d+)/ reply_resolve $1, params when /^close (\d+)/ reply_close $1, params when /^open (\d+) (.*)/m reply_open $1, $2, params when /^comment (\d+) (.*)/m reply_comment $1, $2, params else reply_dunno params end end