Module: Down::NetHttp::DownloadedFile
- Defined in:
- lib/down/net_http.rb
Overview
Defines some additional attributes for the returned Tempfile (on top of what OpenURI::Meta already defines).
Instance Method Summary collapse
Instance Method Details
#content_type ⇒ Object
388 389 390 |
# File 'lib/down/net_http.rb', line 388 def content_type super unless ["content-type"].to_s.empty? end |
#original_filename ⇒ Object
383 384 385 386 |
# File 'lib/down/net_http.rb', line 383 def original_filename Utils.filename_from_content_disposition(["content-disposition"]) || Utils.filename_from_path(base_uri.path) end |