Module: SlackRubyBot::Hooks::Message
Instance Method Summary collapse
Methods included from Base
Instance Method Details
#message(data) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/slack-ruby-bot/hooks/message.rb', line 6 def (data) data = Hashie::Mash.new(data) klass, command, arguments = text_to_class(data.text) return unless klass klass.call(data, command, arguments) end |