Module: QPush::Server::ApiWrapper

Included in:
Job
Defined in:
lib/qpush/server/apis.rb

Overview

The ApiWrapper provides simple functions for all the API classes available for jobs. This provides a single entry point to the API’s for job objects.

Instance Method Summary collapse

Instance Method Details

#delayObject



35
36
37
# File 'lib/qpush/server/apis.rb', line 35

def delay
  Apis::Delay.call(self, :delay)
end

#executeObject



31
32
33
# File 'lib/qpush/server/apis.rb', line 31

def execute
  Apis::Execute.call(self)
end

#morgueObject



43
44
45
# File 'lib/qpush/server/apis.rb', line 43

def morgue
  Apis::Morgue.call(self)
end

#performObject



27
28
29
# File 'lib/qpush/server/apis.rb', line 27

def perform
  Apis::Perform.call(self)
end

#queueObject



23
24
25
# File 'lib/qpush/server/apis.rb', line 23

def queue
  Apis::Queue.call(self)
end

#retryObject



39
40
41
# File 'lib/qpush/server/apis.rb', line 39

def retry
  Apis::Delay.call(self, :retry)
end

#setupObject



47
48
49
# File 'lib/qpush/server/apis.rb', line 47

def setup
  Apis::Setup.call(self)
end