This commit is contained in:
r888888888
2014-12-03 12:45:56 -08:00
parent 6c85572ae6
commit 97a71fe5a0
3 changed files with 19 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ module Downloads
class File
class Error < Exception ; end
attr_reader :data
attr_reader :data, :options
attr_accessor :source, :content_type, :file_path
def initialize(source, file_path, options = {})
@@ -15,6 +15,10 @@ module Downloads
# we sometimes need to capture data from the source page
@data = {}
@options = options
@data[:get_thumbnail] = options[:get_thumbnail]
end
def download!