Sha256: e03d9baf4a81c3af982e6eeba59399564cc5b625d587072d6aeb07b5cfdf86ec
Contents?: true
Size: 818 Bytes
Versions: 9
Compression:
Stored size: 818 Bytes
Contents
module Slack module Web module Config extend self ATTRIBUTES = [ :proxy, :user_agent, :ca_path, :ca_file, :logger, :endpoint, :token ] attr_accessor(*Config::ATTRIBUTES) 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 end class << self def configure block_given? ? yield(Config) : Config end def config Config end end end end Slack::Web::Config.reset
Version data entries
9 entries across 9 versions & 2 rubygems