Class: AsposeCadCloud::JpegCompressionColorMode

Inherits:
Object
  • Object
show all
Defined in:
lib/aspose_cad_cloud/models/jpeg_compression_color_mode.rb

Constant Summary collapse

GRAYSCALE =
"Grayscale".freeze
Y_CB_CR =
"YCbCr".freeze
CMYK =
"Cmyk".freeze
YCCK =
"Ycck".freeze
RGB =
"Rgb".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



17
18
19
20
21
# File 'lib/aspose_cad_cloud/models/jpeg_compression_color_mode.rb', line 17

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