Class: QPush::Server::Apis::Delay

Inherits:
Base
  • Object
show all
Defined in:
lib/qpush/server/apis/delay.rb

Instance Method Summary collapse

Methods inherited from Base

call

Constructor Details

#initialize(job, type) ⇒ Delay

Returns a new instance of Delay.



5
6
7
8
# File 'lib/qpush/server/apis/delay.rb', line 5

def initialize(job, type)
  @job = job
  @type = type
end

Instance Method Details

#callObject



10
11
12
13
# File 'lib/qpush/server/apis/delay.rb', line 10

def call
  load_type
  delay_job
end