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,
lib/resque/unique_by_arity/configuration/validator.rb,
sig/resque/unique_by_arity.rbs
Defined Under Namespace
Modules: Modulizer, UniqueJob, Validation, Version Classes: Configuration, GlobalConfiguration
Constant Summary collapse
- PLUGIN_TAG =
"[R-UBA] ".freeze
- 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
-
.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.
33 34 35 |
# File 'lib/resque/unique_by_arity.rb', line 33 def configuration @configuration end |
Class Method Details
.configure {|@configuration| ... } ⇒ Object
For config with a block
23 24 25 |
# File 'lib/resque/unique_by_arity.rb', line 23 def configure yield(@configuration) end |
.debug(message, config_proxy = nil) ⇒ Object
16 17 18 19 |
# File 'lib/resque/unique_by_arity.rb', line 16 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
10 11 12 13 |
# File 'lib/resque/unique_by_arity.rb', line 10 def log(, config_proxy = nil) config_proxy ||= configuration config_proxy.logger&.send(config_proxy.log_level, ) if config_proxy.logger end |