Module: ODDB::Util::Download
- Defined in:
- lib/oddb/util/download.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.compressed_download(item) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/oddb/util/download.rb', line 4 def Download.compressed_download(item) file = item.text if (data = item.data) && (compression = data[:compression]) \ && !ODDB.config.download_uncompressed.include?(file) file += '.' << compression end file end |
Instance Method Details
#compressed_download(item) ⇒ Object
12 13 14 |
# File 'lib/oddb/util/download.rb', line 12 def compressed_download(item) Download.compressed_download(item) end |