Module: Resque::UniqueByArity
- Defined in:
- lib/resque/unique_by_arity.rb,
lib/resque/unique_by_arity/version.rb,
lib/resque/unique_by_arity/modulizer.rb,
lib/resque/unique_by_arity/unique_job.rb,
lib/resque/unique_by_arity/validation.rb,
lib/resque/unique_by_arity/configuration.rb,
lib/resque/unique_by_arity/global_configuration.rb
Defined Under Namespace
Modules: Modulizer, UniqueJob, Validation Classes: Configuration, GlobalConfiguration
Constant Summary collapse
- PLUGIN_TAG =
(ColorizedString['[R-UBA] '].green).freeze
- VERSION =
'3.0.2'.freeze
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
-
.configure {|@configuration| ... } ⇒ Object
For config with a block.
- .debug(message, config_proxy = nil) ⇒ Object
- .log(message, config_proxy = nil) ⇒ Object
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
31 32 33 |
# File 'lib/resque/unique_by_arity.rb', line 31 def configuration @configuration end |
Class Method Details
.configure {|@configuration| ... } ⇒ Object
For config with a block
21 22 23 |
# File 'lib/resque/unique_by_arity.rb', line 21 def configure yield(@configuration) end |
.debug(message, config_proxy = nil) ⇒ Object
14 15 16 17 |
# File 'lib/resque/unique_by_arity.rb', line 14 def debug(, config_proxy = nil) config_proxy ||= configuration config_proxy.logger&.debug("#{Resque::UniqueByArity::PLUGIN_TAG}#{}") if config_proxy.debug_mode end |
.log(message, config_proxy = nil) ⇒ Object
8 9 10 11 |
# File 'lib/resque/unique_by_arity.rb', line 8 def log(, config_proxy = nil) config_proxy ||= configuration config_proxy.logger&.send(config_proxy.log_level, ) if config_proxy.logger end |