Class: SXS::Config
- Inherits:
-
Object
- Object
- SXS::Config
- Defined in:
- lib/sxs/config.rb
Instance Attribute Summary collapse
-
#redis_config ⇒ Object
readonly
Returns the value of attribute redis_config.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #redis(options = {}) ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
7 8 9 |
# File 'lib/sxs/config.rb', line 7 def initialize @redis_config = {} end |
Instance Attribute Details
#redis_config ⇒ Object (readonly)
Returns the value of attribute redis_config.
5 6 7 |
# File 'lib/sxs/config.rb', line 5 def redis_config @redis_config end |
Instance Method Details
#redis(options = {}) ⇒ Object
11 12 13 |
# File 'lib/sxs/config.rb', line 11 def redis( = {}) @redis_config.merge!() unless .empty? end |