module Down::NetHttp::DownloadedFile

Defines some additional attributes for the returned Tempfile (on top of what OpenURI::Meta already defines).

Public Instance Methods

content_type() click to toggle source
Calls superclass method
# File lib/down/net_http.rb, line 368
def content_type
  super unless meta["content-type"].to_s.empty?
end
original_filename() click to toggle source
# File lib/down/net_http.rb, line 363
def original_filename
  Utils.filename_from_content_disposition(meta["content-disposition"]) ||
  Utils.filename_from_path(base_uri.path)
end