Class: QPush::Server::Job

Inherits:
Job::Base show all
Extended by:
Forwardable
Includes:
ObjectValidator::Validate, JobHelpers
Defined in:
lib/qpush/server/jobs.rb

Instance Attribute Summary

Attributes inherited from Job::Base

#args, #created_at, #cron, #failed, #id, #klass, #namespace, #priority, #retry_max, #run_time, #start_at, #total_fail, #total_success

Instance Method Summary collapse

Methods included from JobHelpers

#cron_at, #cron_job?, #dead_job?, #delay_job?, #delay_until, #mark_failed, #mark_success, #perform_job?, #retry_at, #retry_job?

Methods inherited from Job::Base

#to_json

Constructor Details

#initialize(options) ⇒ Job

Returns a new instance of Job.



55
56
57
58
# File 'lib/qpush/server/jobs.rb', line 55

def initialize(options)
  super
  @api = ApiWrapper.new(self)
end