Inline anemic methods
This commit is contained in:
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 ||=
|
||||
|
Loading…
Reference in New Issue
Block a user