module Mime

MIME types supported by Google Drive.

Public Instance Methods

docx() click to toggle source
# File lib/gdsh/mime.rb, line 25
def docx
  'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
end
html() click to toggle source
# File lib/gdsh/mime.rb, line 5
def html
  'text/html'
end
jpeg() click to toggle source
# File lib/gdsh/mime.rb, line 37
def jpeg
  'image/jpeg'
end
ods() click to toggle source
# File lib/gdsh/mime.rb, line 33
def ods
  'application/x-vnd.oasis.opendocument.spreadsheet'
end
odt() click to toggle source
# File lib/gdsh/mime.rb, line 17
def odt
  'application/vnd.oasis.opendocument.text'
end
pdf() click to toggle source
# File lib/gdsh/mime.rb, line 21
def pdf
  'application/pdf'
end
png() click to toggle source
# File lib/gdsh/mime.rb, line 41
def png
  'image/png'
end
pptx() click to toggle source
# File lib/gdsh/mime.rb, line 49
def pptx
  'application/vnd.openxmlformats-officedocument.presentationml.presentation'
end
rtf() click to toggle source
# File lib/gdsh/mime.rb, line 13
def rtf
  'application/rtf'
end
svg() click to toggle source
# File lib/gdsh/mime.rb, line 45
def svg
  'image/svg+xml'
end
txt() click to toggle source
# File lib/gdsh/mime.rb, line 9
def txt
  'text/plain'
end
xlsx() click to toggle source
# File lib/gdsh/mime.rb, line 29
def xlsx
  'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
end