Files

Class/Module Index [+]

Quicksearch

Dragonfly::Job::Encode

Public Instance Methods

apply() click to toggle source
# File lib/dragonfly/job.rb, line 94
def apply
  raise NothingToEncode, "Can't encode because temp object has not been initialized. Need to fetch first?" unless job.temp_object
  content, meta = job.app.encoder.encode(job.temp_object, format, *arguments)
  job.update(content, (meta || {}).merge(:format => format))
end
arguments() click to toggle source
# File lib/dragonfly/job.rb, line 91
def arguments
  args[1..-1]
end
format() click to toggle source
# File lib/dragonfly/job.rb, line 88
def format
  args.first.to_sym
end
init() click to toggle source
# File lib/dragonfly/job.rb, line 85
def init
  job.url_attrs[:format] = format
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.