Module: JobContracts::Contractable
- Extended by:
- ActiveSupport::Concern
- Included in:
- SidekiqContractable
- Defined in:
- lib/job_contracts/concerns/contractable.rb
Overview
Universal mixin for jobs/workers
Defined Under Namespace
Modules: ClassMethods, Prepends
Instance Method Summary collapse
- #breached_contracts ⇒ Object
-
#contract_breached! ⇒ Object
Default callback.
Instance Method Details
#breached_contracts ⇒ Object
65 66 67 |
# File 'lib/job_contracts/concerns/contractable.rb', line 65 def breached_contracts @breached_contracts ||= Set.new end |
#contract_breached! ⇒ Object
Default callback
70 71 72 |
# File 'lib/job_contracts/concerns/contractable.rb', line 70 def contract_breached! # noop / override in job subclasses end |