Sha256: 2580d25efb928e1b5ee16194cb15eecb1e380287e298d68db63d9f0dbb860d86

Contents?: true

Size: 331 Bytes

Versions: 7

Compression:

Stored size: 331 Bytes

Contents

# frozen_string_literal: true
module Slack
  module Config
    extend self

    attr_accessor :token, :logger

    def reset
      self.token = nil
      self.logger = nil
    end

    reset
  end

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

    def config
      Config
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 lib/slack/config.rb
slack-ruby-client-2.3.0 lib/slack/config.rb
slack-ruby-client-2.2.0 lib/slack/config.rb
slack-ruby-client-2.1.0 lib/slack/config.rb
slack-ruby-client-2.0.0 lib/slack/config.rb
slack-ruby-client-1.1.0 lib/slack/config.rb
slack-ruby-client-1.0.0 lib/slack/config.rb