Module: Slack::Web::Config
Constant Summary collapse
- ATTRIBUTES =
[ :proxy, :user_agent, :ca_path, :ca_file, :endpoint ]
Instance Method Summary collapse
Instance Method Details
#reset ⇒ Object
16 17 18 19 20 21 |
# File 'lib/slack/web/config.rb', line 16 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" end |