class Riffer::Files::Downloader
Constants
- MAX_REDIRECTS
Public Instance Methods
Source
# File lib/riffer/files/downloader.rb, line 11 def call(url, max_bytes:, timeout:) fetch(url, max_bytes: max_bytes, timeout: timeout, redirects_remaining: MAX_REDIRECTS) rescue Riffer::Error raise rescue StandardError => e raise Riffer::FileDownloadError, "Error downloading file: #{e.message}" end
: (String, max_bytes: Integer, timeout: Integer) -> String