Class: SlidizeCloud::ExportFormat
- Inherits:
-
Object
- Object
- SlidizeCloud::ExportFormat
- Defined in:
- lib/slidize_cloud/models/export_format.rb
Constant Summary collapse
- ODP =
"Odp".freeze
- OTP =
"Otp".freeze
- PPTX =
"Pptx".freeze
- PPTM =
"Pptm".freeze
- POTX =
"Potx".freeze
- PPT =
"Ppt".freeze
- PPS =
"Pps".freeze
- PPSM =
"Ppsm".freeze
- POT =
"Pot".freeze
- POTM =
"Potm".freeze
- PDF =
"Pdf".freeze
- XPS =
"Xps".freeze
- PPSX =
"Ppsx".freeze
- TIFF =
"Tiff".freeze
- HTML =
"Html".freeze
- SWF =
"Swf".freeze
- TXT =
"Txt".freeze
- DOC =
"Doc".freeze
- DOCX =
"Docx".freeze
- BMP =
"Bmp".freeze
- JPEG =
"Jpeg".freeze
- PNG =
"Png".freeze
- EMF =
"Emf".freeze
- WMF =
"Wmf".freeze
- GIF =
"Gif".freeze
- EXIF =
"Exif".freeze
- ICO =
"Ico".freeze
- SVG =
"Svg".freeze
Class Method Summary collapse
- .all_vars ⇒ Object
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.all_vars ⇒ Object
64 65 66 |
# File 'lib/slidize_cloud/models/export_format.rb', line 64 def self.all_vars @all_vars ||= [ODP, OTP, PPTX, PPTM, POTX, PPT, PPS, PPSM, POT, POTM, PDF, XPS, PPSX, TIFF, HTML, SWF, TXT, DOC, DOCX, BMP, JPEG, PNG, EMF, WMF, GIF, EXIF, ICO, SVG].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
71 72 73 |
# File 'lib/slidize_cloud/models/export_format.rb', line 71 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
78 79 80 81 |
# File 'lib/slidize_cloud/models/export_format.rb', line 78 def build_from_hash(value) return value if ExportFormat.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #ExportFormat" end |