Sha256: 6981f98a776ebba9d9628ad8bd4defaddf385f7d266d49174d88370c0dee502b

Contents?: true

Size: 436 Bytes

Versions: 19

Compression:

Stored size: 436 Bytes

Contents

module Dboard
  class Config
    @@config ||= {}

    def self.basic_auth(opts = {})
      @@config[:basic_auth] = opts
      Dboard::Api::Client.basic_auth(opts[:user], opts[:password])
    end

    def self.memcache(opts = {})
      @@config[:memcache] = opts
    end

    def self.api(opts = {})
      @@config[:api] = opts
      Dboard::Api::Client.base_uri opts[:uri]
    end

    def self.config
      @@config
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
dboard-3.0.1 lib/config.rb
dboard-3.0.0 lib/config.rb
dboard-2.0.3 lib/config.rb
dboard-2.0.2 lib/config.rb
dboard-2.0.1 lib/config.rb
dboard-2.0.0 lib/config.rb
dboard-1.1.1 lib/config.rb
dboard-1.1.0 lib/config.rb
dboard-1.0.5 lib/config.rb
dboard-1.0.4 lib/config.rb
dboard-1.0.3 lib/config.rb
dboard-1.0.2 lib/config.rb
dboard-1.0.1 lib/config.rb
dboard-1.0.0 lib/config.rb
dboard-0.0.5 lib/config.rb
dboard-0.0.4 lib/config.rb
dboard-0.0.3 lib/config.rb
dboard-0.0.2 lib/config.rb
dboard-0.0.1 lib/config.rb