Class: AsposeCadCloud::ColorModes

Inherits:
Object
  • Object
show all
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

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



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