Class: QPush::Server::Apis::Execute

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

Instance Method Summary collapse

Methods inherited from Base

call, #initialize

Constructor Details

This class inherits a constructor from QPush::Server::Apis::Base

Instance Method Details

#callObject



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

def call
  measure_run_time { job_object.call }
  Success.call(@job)
rescue => e
  Fail.call(@job, e)
end