Class: File
- Inherits:
-
Object
- Object
- File
- Defined in:
- lib/http_requestor.rb
Instance Method Summary collapse
Instance Method Details
#content_type ⇒ Object
155 156 157 |
# File 'lib/http_requestor.rb', line 155 def content_type MIME::Types.type_for(original_filename).first end |
#original_filename ⇒ Object
151 152 153 |
# File 'lib/http_requestor.rb', line 151 def original_filename path.split("/").last end |