Module: Down::Http::DownloadedFile
- Defined in:
- lib/down/http.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Instance Attribute Details
#headers ⇒ Object
Returns the value of attribute headers.
147 148 149 |
# File 'lib/down/http.rb', line 147 def headers @headers end |
#url ⇒ Object
Returns the value of attribute url.
147 148 149 |
# File 'lib/down/http.rb', line 147 def url @url end |
Instance Method Details
#charset ⇒ Object
157 158 159 |
# File 'lib/down/http.rb', line 157 def charset content_type_header.charset end |
#content_type ⇒ Object
153 154 155 |
# File 'lib/down/http.rb', line 153 def content_type content_type_header.mime_type end |
#original_filename ⇒ Object
149 150 151 |
# File 'lib/down/http.rb', line 149 def original_filename filename_from_content_disposition || filename_from_url end |