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
- #delay ⇒ Object
- #execute ⇒ Object
- #morgue ⇒ Object
- #perform ⇒ Object
- #queue ⇒ Object
- #retry ⇒ Object
- #setup ⇒ Object
Instance Method Details
#delay ⇒ Object
35 36 37 |
# File 'lib/qpush/server/apis.rb', line 35 def delay Apis::Delay.call(self, :delay) end |
#execute ⇒ Object
31 32 33 |
# File 'lib/qpush/server/apis.rb', line 31 def execute Apis::Execute.call(self) end |
#morgue ⇒ Object
43 44 45 |
# File 'lib/qpush/server/apis.rb', line 43 def morgue Apis::Morgue.call(self) end |
#perform ⇒ Object
27 28 29 |
# File 'lib/qpush/server/apis.rb', line 27 def perform Apis::Perform.call(self) end |
#queue ⇒ Object
23 24 25 |
# File 'lib/qpush/server/apis.rb', line 23 def queue Apis::Queue.call(self) end |
#retry ⇒ Object
39 40 41 |
# File 'lib/qpush/server/apis.rb', line 39 def retry Apis::Delay.call(self, :retry) end |
#setup ⇒ Object
47 48 49 |
# File 'lib/qpush/server/apis.rb', line 47 def setup Apis::Setup.call(self) end |