Class: SidekiqUniqueJobs::LockType
- Inherits:
-
Object
- Object
- SidekiqUniqueJobs::LockType
- Includes:
- SidekiqWorkerMethods
- Defined in:
- lib/sidekiq_unique_jobs/lock_type.rb
Overview
Calculates the lock type
Instance Attribute Summary collapse
-
#item ⇒ Object
readonly
Returns the value of attribute item.
Attributes included from SidekiqWorkerMethods
Class Method Summary collapse
-
.call(item) ⇒ Symbol, NilClass
Computes lock type from job arguments, sidekiq_options.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(item) ⇒ LockType
constructor
A new instance of LockType.
Methods included from SidekiqWorkerMethods
#after_unlock_hook, #default_job_options, #job_class_constantize, #job_method_defined?, #job_options, #sidekiq_job_class?
Constructor Details
Instance Attribute Details
#item ⇒ Object (readonly)
Returns the value of attribute item.
23 24 25 |
# File 'lib/sidekiq_unique_jobs/lock_type.rb', line 23 def item @item end |
Class Method Details
.call(item) ⇒ Symbol, NilClass
Computes lock type from job arguments, sidekiq_options.
17 18 19 |
# File 'lib/sidekiq_unique_jobs/lock_type.rb', line 17 def self.call(item) new(item).call end |