Class: AsposeCadCloud::JpegCompressionColorMode
- Inherits:
-
Object
- Object
- AsposeCadCloud::JpegCompressionColorMode
- 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
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
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 |