Module: Slack::Web::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/slack/web/config.rb

Constant Summary collapse

ATTRIBUTES =
%i[
  proxy
  user_agent
  ca_path
  ca_file
  logger
  endpoint
  token
  timeout
  open_timeout
  default_page_size
  default_max_retries
  adapter
].freeze

Instance Method Summary collapse

Instance Method Details

#resetObject



24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/slack/web/config.rb', line 24

def reset
  self.endpoint = 'https://slack.com/api/'
  self.user_agent = "Slack Ruby Client/#{Slack::VERSION}"
  self.ca_path = nil
  self.ca_file = nil
  self.token = nil
  self.proxy = nil
  self.logger = nil
  self.timeout = nil
  self.open_timeout = nil
  self.default_page_size = 100
  self.default_max_retries = 100
  self.adapter = ::Faraday.default_adapter
end