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.

Returns:

  • (String)
Version::VERSION

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Attribute Details

.configurationObject

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(message)
  configuration.logger&.debug("#{PLUGIN_TAG}#{message}") if configuration.debug_mode
end

.log(message) ⇒ Object



25
26
27
# File 'lib/resque-unique_at_runtime.rb', line 25

def log(message)
  configuration.logger&.send(configuration.log_level, message) if configuration.logger
end

Instance Method Details

#configure {|@configuration| ... } ⇒ Object

For per-class config with a block

Yields:



34
35
36
# File 'lib/resque-unique_at_runtime.rb', line 34

def configure
  yield(@configuration)
end