Module: Deferrer::Configuration
- Included in:
- Deferrer
- Defined in:
- lib/deferrer/configuration.rb
Instance Attribute Summary collapse
-
#inline ⇒ Object
Returns the value of attribute inline.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#redis ⇒ Object
readonly
Returns the value of attribute redis.
-
#worker ⇒ Object
Returns the value of attribute worker.
Instance Method Summary collapse
-
#redis_config=(config) ⇒ Object
Deferrer.redis_config = { :host => “localhost”, :port => 6379 }.
Instance Attribute Details
#inline ⇒ Object
Returns the value of attribute inline.
7 8 9 |
# File 'lib/deferrer/configuration.rb', line 7 def inline @inline end |
#logger ⇒ Object
Returns the value of attribute logger.
5 6 7 |
# File 'lib/deferrer/configuration.rb', line 5 def logger @logger end |
#redis ⇒ Object (readonly)
Returns the value of attribute redis.
4 5 6 |
# File 'lib/deferrer/configuration.rb', line 4 def redis @redis end |
#worker ⇒ Object
Returns the value of attribute worker.
6 7 8 |
# File 'lib/deferrer/configuration.rb', line 6 def worker @worker end |
Instance Method Details
#redis_config=(config) ⇒ Object
Deferrer.redis_config = { :host => “localhost”, :port => 6379 }
10 11 12 |
# File 'lib/deferrer/configuration.rb', line 10 def redis_config=(config) @redis = Redis.new(config) end |