lib/qpush/server/apis/execute.rb in qpush-0.1.4 vs lib/qpush/server/apis/execute.rb in qpush-0.1.6
- old
+ new
@@ -1,12 +1,8 @@
module QPush
module Server
module Apis
class Execute < Base
- def initialize(job)
- @job = job
- end
-
def call
measure_run_time { job_object.call }
Success.call(@job)
rescue => e
Fail.call(@job, e)