Sha256: 093d9b4c834637b9753efd1762f1b420fc859cb201a25916b48cf46803a0af5a

Contents?: true

Size: 318 Bytes

Versions: 25

Compression:

Stored size: 318 Bytes

Contents

module Slack
  module Config
    extend self

    attr_accessor :token
    attr_accessor :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

25 entries across 25 versions & 1 rubygems

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