Module: Down::Http::DownloadedFile

Defined in:
lib/down/http.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#headersObject

Returns the value of attribute headers.



133
134
135
# File 'lib/down/http.rb', line 133

def headers
  @headers
end

#urlObject

Returns the value of attribute url.



133
134
135
# File 'lib/down/http.rb', line 133

def url
  @url
end

Instance Method Details

#charsetObject



143
144
145
# File 'lib/down/http.rb', line 143

def charset
  content_type_header.charset
end

#content_typeObject



139
140
141
# File 'lib/down/http.rb', line 139

def content_type
  content_type_header.mime_type
end

#original_filenameObject



135
136
137
# File 'lib/down/http.rb', line 135

def original_filename
  filename_from_content_disposition || filename_from_url
end