Sha256: b8a1d1a93560302cb1e9dae5b69f40ed0045d1597bf0aca2d0783778b746f10c
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
module Slack module Web module Config extend self ATTRIBUTES = [ :proxy, :user_agent, :ca_path, :ca_file, :logger, :endpoint, :token, :timeout, :open_timeout, :default_page_size, :default_max_retries ].freeze attr_accessor(*Config::ATTRIBUTES) 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 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slack-ruby-client-0.10.0 | lib/slack/web/config.rb |