Sha256: de5550e01a707655d414fedfd95922ddfbf796363433c71f67fc76c1a775a03a

Contents?: true

Size: 645 Bytes

Versions: 25

Compression:

Stored size: 645 Bytes

Contents

module Slack
  module Web
    class Client
      include Faraday::Connection
      include Faraday::Request
      include Api::Endpoints

      attr_accessor(*Config::ATTRIBUTES)

      def initialize(options = {})
        Slack::Web::Config::ATTRIBUTES.each do |key|
          send("#{key}=", options[key] || Slack::Web.config.send(key))
        end
        @logger ||= Slack::Config.logger || Slack::Logger.default
        @token ||= Slack.config.token
      end

      class << self
        def configure
          block_given? ? yield(Config) : Config
        end

        def config
          Config
        end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
slack-ruby-client-0.14.4 lib/slack/web/client.rb
slack-ruby-client-0.14.3 lib/slack/web/client.rb
slack-ruby-client-0.14.2 lib/slack/web/client.rb
slack-ruby-client-0.14.1 lib/slack/web/client.rb
slack-ruby-client-0.14.0 lib/slack/web/client.rb
slack-ruby-client-0.13.1 lib/slack/web/client.rb
slack-ruby-client-0.13.0 lib/slack/web/client.rb
slack-ruby-client-0.12.0 lib/slack/web/client.rb
slack-ruby-client-0.11.1 lib/slack/web/client.rb
slack-ruby-client-0.11.0 lib/slack/web/client.rb
slack-ruby-client-0.10.0 lib/slack/web/client.rb
slack-ruby-client-0.9.1 lib/slack/web/client.rb
slack-ruby-client-0.9.0 lib/slack/web/client.rb
slack-ruby-client-0.8.1 lib/slack/web/client.rb
slack-ruby-client-0.8.0 lib/slack/web/client.rb
slack-ruby-client-0.7.9 lib/slack/web/client.rb
slack-ruby-client-0.7.8 lib/slack/web/client.rb
slack-ruby-client-0.7.7 lib/slack/web/client.rb
slack-ruby-client-0.7.6 lib/slack/web/client.rb
slack-ruby-client-0.7.5 lib/slack/web/client.rb