Module: Mime

Included in:
Commands::QueryRevision, Commands::UploadTemplate
Defined in:
lib/gdsh/mime.rb

Overview

MIME types supported by Google Drive.

Instance Method Summary collapse

Instance Method Details

#docxObject



25
26
27
# File 'lib/gdsh/mime.rb', line 25

def docx
  'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
end

#htmlObject



5
6
7
# File 'lib/gdsh/mime.rb', line 5

def html
  'text/html'
end

#jpegObject



37
38
39
# File 'lib/gdsh/mime.rb', line 37

def jpeg
  'image/jpeg'
end

#odsObject



33
34
35
# File 'lib/gdsh/mime.rb', line 33

def ods
  'application/x-vnd.oasis.opendocument.spreadsheet'
end

#odtObject



17
18
19
# File 'lib/gdsh/mime.rb', line 17

def odt
  'application/vnd.oasis.opendocument.text'
end

#pdfObject



21
22
23
# File 'lib/gdsh/mime.rb', line 21

def pdf
  'application/pdf'
end

#pngObject



41
42
43
# File 'lib/gdsh/mime.rb', line 41

def png
  'image/png'
end

#pptxObject



49
50
51
# File 'lib/gdsh/mime.rb', line 49

def pptx
  'application/vnd.openxmlformats-officedocument.presentationml.presentation'
end

#rtfObject



13
14
15
# File 'lib/gdsh/mime.rb', line 13

def rtf
  'application/rtf'
end

#svgObject



45
46
47
# File 'lib/gdsh/mime.rb', line 45

def svg
  'image/svg+xml'
end

#txtObject



9
10
11
# File 'lib/gdsh/mime.rb', line 9

def txt
  'text/plain'
end

#xlsxObject



29
30
31
# File 'lib/gdsh/mime.rb', line 29

def xlsx
  'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
end