Class: QPush::Server::Apis::History
- Defined in:
- lib/qpush/server/apis/history.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(job, status, error) ⇒ History
constructor
A new instance of History.
Methods inherited from Base
Constructor Details
#initialize(job, status, error) ⇒ History
Returns a new instance of History.
5 6 7 8 9 10 11 |
# File 'lib/qpush/server/apis/history.rb', line 5 def initialize(job, status, error) @status = status @klass = job.klass @args = job.args @performed = Time.now.to_i @error = error ? error. : nil end |
Instance Method Details
#call ⇒ Object
13 14 15 |
# File 'lib/qpush/server/apis/history.rb', line 13 def call update_history end |