Class: QPush::Base::Config
- Inherits:
-
Object
- Object
- QPush::Base::Config
- Defined in:
- lib/qpush/base/config.rb
Direct Known Subclasses
Constant Summary collapse
- DEFAULTS =
{ redis_url: ENV['REDIS_URL'], redis_pool: 10 }.freeze
Instance Attribute Summary collapse
-
#redis_pool ⇒ Object
Returns the value of attribute redis_pool.
-
#redis_url ⇒ Object
Returns the value of attribute redis_url.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #redis ⇒ Object
Constructor Details
Instance Attribute Details
#redis_pool ⇒ Object
Returns the value of attribute redis_pool.
27 28 29 |
# File 'lib/qpush/base/config.rb', line 27 def redis_pool @redis_pool end |
#redis_url ⇒ Object
Returns the value of attribute redis_url.
27 28 29 |
# File 'lib/qpush/base/config.rb', line 27 def redis_url @redis_url end |
Instance Method Details
#redis ⇒ Object
33 34 35 36 37 38 |
# File 'lib/qpush/base/config.rb', line 33 def redis { size: redis_pool, url: redis_url } end |