Class: QPush::Server::Apis::Delay
- Defined in:
- lib/qpush/server/apis/delay.rb
Overview
The Delay API will take a job and add it to the delay sorted set.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(job, type) ⇒ Delay
constructor
A new instance of Delay.
Methods inherited from Base
Constructor Details
#initialize(job, type) ⇒ Delay
Returns a new instance of Delay.
7 8 9 10 |
# File 'lib/qpush/server/apis/delay.rb', line 7 def initialize(job, type) @job = job @type = type end |
Instance Method Details
#call ⇒ Object
12 13 14 15 |
# File 'lib/qpush/server/apis/delay.rb', line 12 def call load_type delay_job end |