Module: Slack::Web::Config
Constant Summary collapse
- ATTRIBUTES =
[ :proxy, :user_agent, :ca_path, :ca_file, :logger, :endpoint, :token ]
Instance Method Summary collapse
Instance Method Details
#reset ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/slack/web/config.rb', line 18 def reset self.endpoint = 'https://slack.com/api/' self.user_agent = "Slack Ruby Client/#{Slack::VERSION}" self.ca_path = `openssl version -a | grep OPENSSLDIR | awk '{print $2}'|sed -e 's/\"//g'` self.ca_file = "#{ca_path}/ca-certificates.crt" self.token = nil self.proxy = nil self.logger = nil end |