Class: AsyncResponse::Expirer
- Inherits:
-
Object
- Object
- AsyncResponse::Expirer
- Includes:
- Helper
- Defined in:
- lib/async_response/expirer.rb
Instance Attribute Summary collapse
-
#job_key ⇒ Object
readonly
Returns the value of attribute job_key.
-
#worker_class ⇒ Object
readonly
Returns the value of attribute worker_class.
Instance Method Summary collapse
- #expire! ⇒ Object
-
#initialize(worker_class, job_key) ⇒ Expirer
constructor
A new instance of Expirer.
Methods included from Helper
Constructor Details
#initialize(worker_class, job_key) ⇒ Expirer
Returns a new instance of Expirer.
5 6 7 8 |
# File 'lib/async_response/expirer.rb', line 5 def initialize(worker_class, job_key) @worker_class = worker_class @job_key = job_key end |
Instance Attribute Details
#job_key ⇒ Object (readonly)
Returns the value of attribute job_key.
4 5 6 |
# File 'lib/async_response/expirer.rb', line 4 def job_key @job_key end |
#worker_class ⇒ Object (readonly)
Returns the value of attribute worker_class.
4 5 6 |
# File 'lib/async_response/expirer.rb', line 4 def worker_class @worker_class end |
Instance Method Details
#expire! ⇒ Object
10 11 12 |
# File 'lib/async_response/expirer.rb', line 10 def expire! AsyncResponse::Job.expire!(job_type, hashed_job_key) end |