Class: Nppes::Jobs::UpdaterJob

Inherits:
Struct
  • Object
show all
Defined in:
lib/nppes/jobs/updater_job.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#updateObject

Returns the value of attribute update

Returns:

  • (Object)

    the current value of update



3
4
5
# File 'lib/nppes/jobs/updater_job.rb', line 3

def update
  @update
end

Instance Method Details

#failure(job) ⇒ Object



8
9
10
# File 'lib/nppes/jobs/updater_job.rb', line 8

def failure(job)
  update.update_attribute(:done, false)
end

#performObject



4
5
6
# File 'lib/nppes/jobs/updater_job.rb', line 4

def perform
  UpdatePack::Pack.proceed_update(update)
end