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
].freeze

Instance Method Summary collapse

Instance Method Details

#resetObject


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

def reset
  self.endpoint = 'https://slack.com/api/'
  self.user_agent = "Slack Ruby Client/#{Slack::VERSION}"
  self.ca_path = defined?(OpenSSL) ? OpenSSL::X509::DEFAULT_CERT_DIR : nil
  self.ca_file = defined?(OpenSSL) ? OpenSSL::X509::DEFAULT_CERT_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
end