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
- #docx ⇒ Object
- #html ⇒ Object
- #jpeg ⇒ Object
- #ods ⇒ Object
- #odt ⇒ Object
- #pdf ⇒ Object
- #png ⇒ Object
- #pptx ⇒ Object
- #rtf ⇒ Object
- #svg ⇒ Object
- #txt ⇒ Object
- #xlsx ⇒ Object
Instance Method Details
#docx ⇒ Object
25 26 27 |
# File 'lib/gdsh/mime.rb', line 25 def docx 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' end |
#html ⇒ Object
5 6 7 |
# File 'lib/gdsh/mime.rb', line 5 def html 'text/html' end |
#jpeg ⇒ Object
37 38 39 |
# File 'lib/gdsh/mime.rb', line 37 def jpeg 'image/jpeg' end |
#ods ⇒ Object
33 34 35 |
# File 'lib/gdsh/mime.rb', line 33 def ods 'application/x-vnd.oasis.opendocument.spreadsheet' end |
#odt ⇒ Object
17 18 19 |
# File 'lib/gdsh/mime.rb', line 17 def odt 'application/vnd.oasis.opendocument.text' end |
#pdf ⇒ Object
21 22 23 |
# File 'lib/gdsh/mime.rb', line 21 def pdf 'application/pdf' end |
#png ⇒ Object
41 42 43 |
# File 'lib/gdsh/mime.rb', line 41 def png 'image/png' end |
#pptx ⇒ Object
49 50 51 |
# File 'lib/gdsh/mime.rb', line 49 def pptx 'application/vnd.openxmlformats-officedocument.presentationml.presentation' end |
#rtf ⇒ Object
13 14 15 |
# File 'lib/gdsh/mime.rb', line 13 def rtf 'application/rtf' end |
#svg ⇒ Object
45 46 47 |
# File 'lib/gdsh/mime.rb', line 45 def svg 'image/svg+xml' end |
#txt ⇒ Object
9 10 11 |
# File 'lib/gdsh/mime.rb', line 9 def txt 'text/plain' end |
#xlsx ⇒ Object
29 30 31 |
# File 'lib/gdsh/mime.rb', line 29 def xlsx 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' end |