Class: QPush::Server::ApiWrapper
- Inherits:
-
Object
- Object
- QPush::Server::ApiWrapper
- Defined in:
- lib/qpush/server/apis.rb
Instance Method Summary collapse
- #delay ⇒ Object
- #execute ⇒ Object
-
#initialize(job) ⇒ ApiWrapper
constructor
A new instance of ApiWrapper.
- #morgue ⇒ Object
- #perform ⇒ Object
- #queue ⇒ Object
- #retry ⇒ Object
- #setup ⇒ Object
Constructor Details
#initialize(job) ⇒ ApiWrapper
Returns a new instance of ApiWrapper.
13 14 15 |
# File 'lib/qpush/server/apis.rb', line 13 def initialize(job) @job = job end |
Instance Method Details
#delay ⇒ Object
29 30 31 |
# File 'lib/qpush/server/apis.rb', line 29 def delay Apis::Delay.call(@job, :delay) end |
#execute ⇒ Object
25 26 27 |
# File 'lib/qpush/server/apis.rb', line 25 def execute Apis::Execute.call(@job) end |
#morgue ⇒ Object
37 38 39 |
# File 'lib/qpush/server/apis.rb', line 37 def morgue Apis::Morgue.call(@job) end |
#perform ⇒ Object
21 22 23 |
# File 'lib/qpush/server/apis.rb', line 21 def perform Apis::Perform.call(@job) end |
#queue ⇒ Object
17 18 19 |
# File 'lib/qpush/server/apis.rb', line 17 def queue Apis::Queue.call(@job) end |
#retry ⇒ Object
33 34 35 |
# File 'lib/qpush/server/apis.rb', line 33 def retry Apis::Delay.call(@job, :retry) end |
#setup ⇒ Object
41 42 43 |
# File 'lib/qpush/server/apis.rb', line 41 def setup Apis::Setup.call(@job) end |