Sha256: 4dcdaa8985b8d7116043435c5b934a72214bb58d3d47e1a887d6525145995f7a
Contents?: true
Size: 675 Bytes
Versions: 1
Compression:
Stored size: 675 Bytes
Contents
# frozen_string_literal: true 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slack-ruby-client-0.14.5 | lib/slack/web/client.rb |