Sha256: 0919e4484dcc8180bd40a716e4cc062f89edcf2abccfeb4e6bc2d9e8e98ba094

Contents?: true

Size: 579 Bytes

Versions: 12

Compression:

Stored size: 579 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
        @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

12 entries across 12 versions & 2 rubygems

Version Path
slack-ruby-client-bhe-0.5.5 lib/slack/web/client.rb
slack-ruby-client-bhe-0.5.4 lib/slack/web/client.rb
slack-ruby-client-0.6.0 lib/slack/web/client.rb
slack-ruby-client-0.5.4 lib/slack/web/client.rb
slack-ruby-client-0.5.3 lib/slack/web/client.rb
slack-ruby-client-0.5.2 lib/slack/web/client.rb
slack-ruby-client-0.5.1 lib/slack/web/client.rb
slack-ruby-client-0.5.0 lib/slack/web/client.rb
slack-ruby-client-0.4.0 lib/slack/web/client.rb
slack-ruby-client-0.3.1 lib/slack/web/client.rb
slack-ruby-client-0.3.0 lib/slack/web/client.rb
slack-ruby-client-0.2.1 lib/slack/web/client.rb