Class: SidekiqInsight::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/sidekiq_insight/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#prefixObject

Returns the value of attribute prefix.



5
6
7
# File 'lib/sidekiq_insight/configuration.rb', line 5

def prefix
  @prefix
end

#redis_urlObject

Returns the value of attribute redis_url.



5
6
7
# File 'lib/sidekiq_insight/configuration.rb', line 5

def redis_url
  @redis_url
end