Class: Dragonfly::Job::Fetch

Inherits:
Step show all
Defined in:
lib/dragonfly/job.rb

Instance Attribute Summary

Attributes inherited from Step

#args

Instance Method Summary collapse

Methods inherited from Step

abbreviation, basename, #initialize, #inspect, step_name, #update_temp_object

Constructor Details

This class inherits a constructor from Dragonfly::Job::Step

Instance Method Details

#apply(job) ⇒ Object



59
60
61
62
# File 'lib/dragonfly/job.rb', line 59

def apply(job)
  content, extra = job.app.datastore.retrieve(uid)
  job.temp_object = TempObject.new(content, extra)
end

#uidObject



56
57
58
# File 'lib/dragonfly/job.rb', line 56

def uid
  args.first
end