Class: Slack::API
- Inherits:
-
Object
- Object
- Slack::API
- Includes:
- Connection, Endpoint, Request
- Defined in:
- lib/slack/api.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ API
constructor
Creates a new API.
- #realtime ⇒ Object
Methods included from Endpoint::Users
#users_getPresence, #users_info, #users_list, #users_setActive, #users_setPresence
Methods included from Endpoint::Stars
Methods included from Endpoint::Search
#search_all, #search_files, #search_messages
Methods included from Endpoint::Presence
Methods included from Endpoint::Oauth
Methods included from Endpoint::Im
#im_close, #im_history, #im_list, #im_mark, #im_open
Methods included from Endpoint::Groups
#groups_archive, #groups_close, #groups_create, #groups_createChild, #groups_history, #groups_invite, #groups_kick, #groups_leave, #groups_list, #groups_mark, #groups_open, #groups_rename, #groups_setPurpose, #groups_setTopic, #groups_unarchive
Methods included from Endpoint::Files
#files_info, #files_list, #files_upload
Methods included from Endpoint::Emoji
Methods included from Endpoint::Chat
#chat_delete, #chat_postMessage, #chat_update
Methods included from Endpoint::Channels
#channels_archive, #channels_create, #channels_history, #channels_info, #channels_invite, #channels_join, #channels_kick, #channels_leave, #channels_list, #channels_mark, #channels_rename, #channels_setPurpose, #channels_setTopic, #channels_unarchive
Methods included from Endpoint::Auth
Methods included from Endpoint::Api
Methods included from Request
Constructor Details
#initialize(options = {}) ⇒ API
Creates a new API
14 15 16 17 18 19 |
# File 'lib/slack/api.rb', line 14 def initialize(={}) = Slack..merge() Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", [key]) end end |