Method: ConvertApi::Result#save_files

Defined in:
lib/convert_api/result.rb

#save_files(path) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/convert_api/result.rb', line 25

def save_files(path)
  threads = files.map do |file|
    Thread.new { file.save(path) }
  end

  threads.map(&:value)
end