module Sidekiq::Options
Public Class Methods
[](key)
click to toggle source
# File lib/sidekiq/options.rb, line 4 def self.[](key) self.config[key] end
[]=(key, value)
click to toggle source
# File lib/sidekiq/options.rb, line 8 def self.[]=(key, value) self.config[key] = value end
config()
click to toggle source
# File lib/sidekiq/options.rb, line 12 def self.config options_field ? Sidekiq.public_send(options_field) : Sidekiq end
options_field()
click to toggle source
# File lib/sidekiq/options.rb, line 16 def self.options_field return @options_field unless @options_field.nil? sidekiq_version = Gem::Version.new(Sidekiq::VERSION) @options_field = if sidekiq_version >= Gem::Version.new('7.0') :default_configuration else false end end