Inline anemic methods

This commit is contained in:
George Claghorn 2019-05-15 15:53:43 -04:00
parent 13d6aa3a7b
commit 5f50f4d63b

@ -96,19 +96,13 @@ def processed?
end
def process
blob.open do |image|
transform(image) { |output| upload(output) }
blob.open do |input|
variation.transform(input, format: format) do |output|
service.upload(key, output)
end
end
end
def transform(image, &block)
variation.transform(image, format: format, &block)
end
def upload(file)
service.upload(key, file)
end
def specification
@specification ||=