Sha256: 2d7c62f7e6a44bfd2e8e710870acca367e9fdf59ffd7f1a895d851cc26ba3a01
Contents?: true
Size: 679 Bytes
Versions: 9
Compression:
Stored size: 679 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.fetch(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
9 entries across 9 versions & 1 rubygems