Module: Resque::UniqueInQueue
- Defined in:
- lib/resque-unique_in_queue.rb,
lib/resque/unique_in_queue/queue.rb,
lib/resque/unique_in_queue/version.rb,
lib/resque/unique_in_queue/configuration.rb
Defined Under Namespace
Modules: Queue Classes: Configuration
Constant Summary collapse
- PLUGIN_TAG =
(ColorizedString['[R-UIQ] '].blue).freeze
- VERSION =
'2.0.0'.freeze
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#configure {|@configuration| ... } ⇒ Object
For per-class config with a block.
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
43 44 45 |
# File 'lib/resque-unique_in_queue.rb', line 43 def configuration @configuration end |
Class Method Details
.debug(message) ⇒ Object
32 33 34 |
# File 'lib/resque-unique_in_queue.rb', line 32 def debug() configuration.logger&.debug("#{PLUGIN_TAG}#{message}") if configuration.debug_mode end |
.log(message) ⇒ Object
28 29 30 |
# File 'lib/resque-unique_in_queue.rb', line 28 def log() configuration.logger&.send(configuration.log_level, ) if configuration.logger end |
Instance Method Details
#configure {|@configuration| ... } ⇒ Object
For per-class config with a block
37 38 39 |
# File 'lib/resque-unique_in_queue.rb', line 37 def configure yield(@configuration) end |