Class: QPush::Server::Apis::History

Inherits:
Base
  • Object
show all
Defined in:
lib/qpush/server/apis/history.rb

Instance Method Summary collapse

Methods inherited from Base

call

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.message : nil
end

Instance Method Details

#callObject



13
14
15
# File 'lib/qpush/server/apis/history.rb', line 13

def call
  update_history
end