Class: File

Inherits:
Object
  • Object
show all
Defined in:
lib/http_requestor.rb

Instance Method Summary collapse

Instance Method Details

#content_typeObject


216
217
218
# File 'lib/http_requestor.rb', line 216

def content_type
  MIME::Types.type_for(original_filename).first
end

#original_filenameObject


212
213
214
# File 'lib/http_requestor.rb', line 212

def original_filename
  path.split("/").last
end