Class: Dragonfly::Job::Fetch
Defined Under Namespace
Classes: NotFound
Instance Attribute Summary
Attributes inherited from Step
Instance Method Summary collapse
Methods inherited from Step
abbreviation, #app, basename, #init, #initialize, #inspect, step_name, #to_a
Constructor Details
This class inherits a constructor from Dragonfly::Job::Step
Instance Method Details
#apply ⇒ Object
12 13 14 15 16 |
# File 'lib/dragonfly/job/fetch.rb', line 12 def apply content, = app.datastore.read(uid) raise NotFound, "uid #{uid} not found" if content.nil? job.content.update(content, ) end |
#uid ⇒ Object
8 9 10 |
# File 'lib/dragonfly/job/fetch.rb', line 8 def uid args.first end |