Class: Basket::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#backendObject

Returns the value of attribute backend.



4
5
6
# File 'lib/basket/configuration.rb', line 4

def backend
  @backend
end

#namespaceObject

Returns the value of attribute namespace.



3
4
5
# File 'lib/basket/configuration.rb', line 3

def namespace
  @namespace
end

#redis_dbObject

Returns the value of attribute redis_db.



3
4
5
# File 'lib/basket/configuration.rb', line 3

def redis_db
  @redis_db
end

#redis_hostObject

Returns the value of attribute redis_host.



3
4
5
# File 'lib/basket/configuration.rb', line 3

def redis_host
  @redis_host
end

#redis_portObject

Returns the value of attribute redis_port.



3
4
5
# File 'lib/basket/configuration.rb', line 3

def redis_port
  @redis_port
end

#redis_urlObject

Returns the value of attribute redis_url.



3
4
5
# File 'lib/basket/configuration.rb', line 3

def redis_url
  @redis_url
end