Sha256: 9cba10f07eac80cd2b5f67e0315d74da5e29f451dbc6101ee7b39290f8c446a3

Contents?: true

Size: 348 Bytes

Versions: 6

Compression:

Stored size: 348 Bytes

Contents

# frozen_string_literal: true
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

6 entries across 6 versions & 1 rubygems

Version Path
slack-ruby-client-0.17.0 lib/slack/config.rb
slack-ruby-client-0.16.0 lib/slack/config.rb
slack-ruby-client-0.15.1 lib/slack/config.rb
slack-ruby-client-0.15.0 lib/slack/config.rb
slack-ruby-client-0.14.6 lib/slack/config.rb
slack-ruby-client-0.14.5 lib/slack/config.rb