Class: Dboard::Config
- Inherits:
-
Object
- Object
- Dboard::Config
- Defined in:
- lib/config.rb
Class Method Summary collapse
- .api(opts = {}) ⇒ Object
- .basic_auth(opts = {}) ⇒ Object
- .config ⇒ Object
- .memcache(opts = {}) ⇒ Object
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 |
.config ⇒ Object
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 |