Class: Slack::Web::Client
- Inherits:
-
Object
- Object
- Slack::Web::Client
- Includes:
- Api::Endpoints, Faraday::Connection, Faraday::Request
- Defined in:
- lib/slack/web/client.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Api::Endpoints::Users
#users_getPresence, #users_info, #users_list, #users_setActive, #users_setPresence
Methods included from Api::Endpoints::Team
Methods included from Api::Endpoints::Stars
#stars_add, #stars_list, #stars_remove
Methods included from Api::Endpoints::Search
#search_all, #search_files, #search_messages
Methods included from Api::Endpoints::Rtm
Methods included from Api::Endpoints::Reactions
#reactions_add, #reactions_get, #reactions_list, #reactions_remove
Methods included from Api::Endpoints::Pins
#pins_add, #pins_list, #pins_remove
Methods included from Api::Endpoints::Oauth
Methods included from Api::Endpoints::Im
#im_close, #im_history, #im_list, #im_mark, #im_open
Methods included from Api::Endpoints::Groups
#groups_archive, #groups_close, #groups_create, #groups_createChild, #groups_history, #groups_info, #groups_invite, #groups_kick, #groups_leave, #groups_list, #groups_mark, #groups_open, #groups_rename, #groups_setPurpose, #groups_setTopic, #groups_unarchive
Methods included from Api::Endpoints::Files
#files_delete, #files_info, #files_list, #files_upload
Methods included from Api::Endpoints::Emoji
Methods included from Api::Endpoints::Chat
#chat_delete, #chat_postMessage, #chat_update
Methods included from Api::Endpoints::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 Api::Endpoints::Auth
Methods included from Faraday::Request
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
10 11 12 13 14 15 |
# File 'lib/slack/web/client.rb', line 10 def initialize( = {}) Slack::Web::Config::ATTRIBUTES.each do |key| send("#{key}=", [key] || Slack::Web.config.send(key)) end @token ||= Slack.config.token end |
Class Method Details
.config ⇒ Object
22 23 24 |
# File 'lib/slack/web/client.rb', line 22 def config Config end |
.configure ⇒ Object
18 19 20 |
# File 'lib/slack/web/client.rb', line 18 def configure block_given? ? yield(Config) : Config end |