Class: SXS::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/sxs/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_configObject (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(options = {})
  @redis_config.merge!(options) unless options.empty?
end