class Downloader
Public Instance Methods
download(uri, local_path)
click to toggle source
# File lib/io/downloader.rb, line 4 def download(uri, local_path) File.open(local_path, 'wb') do |saved_file| open(uri, 'rb') do |read_file| saved_file.write(read_file.read) end end local_path end