Class: Redstruct::Configuration
- Inherits:
-
Object
- Object
- Redstruct::Configuration
- Defined in:
- lib/redstruct/configuration.rb
Overview
Simple class holding the Redstruct configuration
Instance Attribute Summary collapse
-
#default_connection ⇒ ConnectionPool, Redis
The default redis-rb connection, or a pool of said connections.
-
#default_namespace ⇒ String
Default namespace for factories.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 |
# File 'lib/redstruct/configuration.rb', line 12 def initialize @default_connection = nil @default_namespace = nil end |
Instance Attribute Details
#default_connection ⇒ ConnectionPool, Redis
Returns the default redis-rb connection, or a pool of said connections.
7 8 9 |
# File 'lib/redstruct/configuration.rb', line 7 def default_connection @default_connection end |
#default_namespace ⇒ String
Returns Default namespace for factories.
10 11 12 |
# File 'lib/redstruct/configuration.rb', line 10 def default_namespace @default_namespace end |