Class: AsposeSlidesCloud::ImageExportFormat

Inherits:
Object
  • Object
show all
Defined in:
lib/aspose_slides_cloud/models/image_export_format.rb

Constant Summary collapse

JPEG =
"Jpeg".freeze
PNG =
"Png".freeze
GIF =
"Gif".freeze
BMP =
"Bmp".freeze
TIFF =
"Tiff".freeze

Instance Method Summary collapse

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



37
38
39
40
41
# File 'lib/aspose_slides_cloud/models/image_export_format.rb', line 37

def build_from_hash(value)
  constantValues = ImageExportFormat.constants.select { |c| ImageExportFormat::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #ImageExportFormat" if constantValues.empty?
  value
end