Class: Dboard::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/config.rb

Class Method Summary collapse

Class Method Details

.api(opts = {}) ⇒ Object



14
15
16
17
# File 'lib/config.rb', line 14

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

.basic_auth(opts = {}) ⇒ Object



5
6
7
8
# File 'lib/config.rb', line 5

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

.configObject



19
20
21
# File 'lib/config.rb', line 19

def self.config
  @@config
end

.memcache(opts = {}) ⇒ Object



10
11
12
# File 'lib/config.rb', line 10

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