Class: Tenderloin::Downloaders::Base

Inherits:
Object
  • Object
show all
Includes:
Util
Defined in:
lib/tenderloin/downloaders/base.rb

Overview

Represents a base class for a downloader. A downloader handles downloading a box file to a temporary file.

Direct Known Subclasses

File, HTTP

Instance Method Summary collapse

Methods included from Util

#error_and_exit, included, #logger, #wrap_output

Instance Method Details

#download!(source_url, destination_file) ⇒ Object

Downloads the source file to the destination file. It is up to implementors of this class to handle the logic.



10
# File 'lib/tenderloin/downloaders/base.rb', line 10

def download!(source_url, destination_file); end