Sha256: ac05c8e073aff8adb909f66bc51ff80428a1058abd1978f3c8b340a611547b0f
Contents?: true
Size: 522 Bytes
Versions: 2
Compression:
Stored size: 522 Bytes
Contents
module Slack class Client < API METHODS = %w(users.list channels.history channels.mark channels.list files.upload files.list im.history im.list groups.history groups.list search.all search.files search.messages chat.postMessage auth.test) def respond_to?(method) return METHODS.include?(method.id2name.gsub("_", ".")) || super end def method_missing(action, *args) post(action.id2name.gsub("_", "."), *args) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
slack-api-0.0.3 | lib/slack/client.rb |
slack-api-0.0.2 | lib/slack/client.rb |