Class: Oddb2xml::EphaDownloader
- Inherits:
-
Downloader
- Object
- Downloader
- Oddb2xml::EphaDownloader
- Includes:
- DownloadMethod
- Defined in:
- lib/oddb2xml/downloader.rb
Instance Attribute Summary
Attributes inherited from Downloader
#agent, #file2save, #type, #url
Instance Method Summary collapse
Methods inherited from Downloader
#init, #initialize, #report_download
Constructor Details
This class inherits a constructor from Oddb2xml::Downloader
Instance Method Details
#download ⇒ Object
152 153 154 155 156 157 158 |
# File 'lib/oddb2xml/downloader.rb', line 152 def download @url ||= "https://raw.githubusercontent.com/zdavatz/oddb2xml_files/master/interactions_de_utf8.csv" file = "epha_interactions.csv" content = download_as(file, "w+") FileUtils.rm_f(file, verbose: true) content end |