Class: Basket::Configuration
- Inherits:
-
Object
- Object
- Basket::Configuration
- Defined in:
- lib/basket/configuration.rb
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#redis_db ⇒ Object
Returns the value of attribute redis_db.
-
#redis_host ⇒ Object
Returns the value of attribute redis_host.
-
#redis_port ⇒ Object
Returns the value of attribute redis_port.
-
#redis_url ⇒ Object
Returns the value of attribute redis_url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 11 12 13 |
# File 'lib/basket/configuration.rb', line 6 def initialize @redis_host = "127.0.0.1" @redis_port = 6379 @redis_db = 15 @backend = BackendAdapter::MemoryBackend @namespace = :basket @redis_url = nil end |
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend.
4 5 6 |
# File 'lib/basket/configuration.rb', line 4 def backend @backend end |
#namespace ⇒ Object
Returns the value of attribute namespace.
3 4 5 |
# File 'lib/basket/configuration.rb', line 3 def namespace @namespace end |
#redis_db ⇒ Object
Returns the value of attribute redis_db.
3 4 5 |
# File 'lib/basket/configuration.rb', line 3 def redis_db @redis_db end |
#redis_host ⇒ Object
Returns the value of attribute redis_host.
3 4 5 |
# File 'lib/basket/configuration.rb', line 3 def redis_host @redis_host end |
#redis_port ⇒ Object
Returns the value of attribute redis_port.
3 4 5 |
# File 'lib/basket/configuration.rb', line 3 def redis_port @redis_port end |
#redis_url ⇒ Object
Returns the value of attribute redis_url.
3 4 5 |
# File 'lib/basket/configuration.rb', line 3 def redis_url @redis_url end |