Class: SidekiqInsight::Configuration
- Inherits:
-
Object
- Object
- SidekiqInsight::Configuration
- Defined in:
- lib/sidekiq_insight/configuration.rb
Instance Attribute Summary collapse
-
#prefix ⇒ Object
Returns the value of attribute prefix.
-
#redis_url ⇒ Object
Returns the value of attribute redis_url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 |
# File 'lib/sidekiq_insight/configuration.rb', line 7 def initialize @redis_url = ENV['REDIS_URL'] || 'redis://127.0.0.1:6379/0' @prefix = 'sidekiq_insight:' end |
Instance Attribute Details
#prefix ⇒ Object
Returns the value of attribute prefix.
5 6 7 |
# File 'lib/sidekiq_insight/configuration.rb', line 5 def prefix @prefix end |
#redis_url ⇒ Object
Returns the value of attribute redis_url.
5 6 7 |
# File 'lib/sidekiq_insight/configuration.rb', line 5 def redis_url @redis_url end |