Sha256: 4f748f953918f4e9a7b8a2dfe593ceda9b5fe52a1e948a14aa229b7371a2ac8b
Contents?: true
Size: 1.05 KB
Versions: 3
Compression:
Stored size: 1.05 KB
Contents
# frozen_string_literal: true module Slack module Web module Config extend self ATTRIBUTES = %i[ 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
slack-ruby-client-0.15.0 | lib/slack/web/config.rb |
slack-ruby-client-0.14.6 | lib/slack/web/config.rb |
slack-ruby-client-0.14.5 | lib/slack/web/config.rb |