Module: RolloutService::Config
Instance Attribute Summary collapse
-
#redis ⇒ Object
Returns the value of attribute redis.
-
#rollout ⇒ Object
Returns the value of attribute rollout.
Instance Method Summary collapse
Instance Attribute Details
#redis ⇒ Object
Returns the value of attribute redis.
4 5 6 |
# File 'lib/rollout_service/config/config.rb', line 4 def redis @redis end |
#rollout ⇒ Object
Returns the value of attribute rollout.
4 5 6 |
# File 'lib/rollout_service/config/config.rb', line 4 def rollout @rollout end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
6 7 8 9 10 11 |
# File 'lib/rollout_service/config/config.rb', line 6 def configure yield self raise 'You must provide a redis instance' if redis.blank? self.rollout = Rollout.new(redis, use_sets: true) end |