Module: Resque::UniqueAtRuntime
- Defined in:
- lib/resque-unique_at_runtime.rb,
lib/resque/unique_at_runtime.rb,
lib/resque/unique_at_runtime/version.rb,
lib/resque/unique_at_runtime/configuration.rb,
sig/resque/unique_at_runtime.rbs
Defined Under Namespace
Modules: Version Classes: Configuration
Constant Summary collapse
- PLUGIN_TAG =
"[R-UAR] "- VERSION =
Current gem version exposed at the traditional constant location.
Version::VERSION
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.
40 41 42 |
# File 'lib/resque-unique_at_runtime.rb', line 40 def configuration @configuration end |
Class Method Details
.debug(message) ⇒ Object
29 30 31 |
# File 'lib/resque-unique_at_runtime.rb', line 29 def debug() configuration.logger&.debug("#{PLUGIN_TAG}#{}") if configuration.debug_mode end |
.log(message) ⇒ Object
25 26 27 |
# File 'lib/resque-unique_at_runtime.rb', line 25 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
34 35 36 |
# File 'lib/resque-unique_at_runtime.rb', line 34 def configure yield(@configuration) end |