Class: AsposeCadCloud::ColorModes
- Inherits:
-
Object
- Object
- AsposeCadCloud::ColorModes
- Defined in:
- lib/aspose_cad_cloud/models/color_modes.rb
Constant Summary collapse
- BITMAP =
"Bitmap".freeze
- GRAYSCALE =
"Grayscale".freeze
- INDEXED =
"Indexed".freeze
- RGB =
"Rgb".freeze
- CMYK =
"Cmyk".freeze
- MULTICHANNEL =
"Multichannel".freeze
- DUOTONE =
"Duotone".freeze
- LAB =
"Lab".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
20 21 22 23 24 |
# File 'lib/aspose_cad_cloud/models/color_modes.rb', line 20 def build_from_hash(value) constantValues = ColorModes.constants.select{|c| ColorModes::const_get(c) == value} raise "Invalid ENUM value #{value} for class #ColorModes" if constantValues.empty? value end |