Class: Nppes::Jobs::UpdaterJob
- Inherits:
-
Struct
- Object
- Struct
- Nppes::Jobs::UpdaterJob
- Defined in:
- lib/nppes/jobs/updater_job.rb
Instance Attribute Summary collapse
-
#update ⇒ Object
Returns the value of attribute update.
Instance Method Summary collapse
Instance Attribute Details
#update ⇒ Object
Returns the value of attribute 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 |
#perform ⇒ Object
4 5 6 |
# File 'lib/nppes/jobs/updater_job.rb', line 4 def perform UpdatePack::Pack.proceed_update(update) end |