Class: AsposeCadCloud::TiffPhotometrics

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

Constant Summary collapse

MIN_IS_WHITE =
"MinIsWhite".freeze
MIN_IS_BLACK =
"MinIsBlack".freeze
RGB =
"Rgb".freeze
PALETTE =
"Palette".freeze
MASK =
"Mask".freeze
SEPARATED =
"Separated".freeze
YCBCR =
"Ycbcr".freeze
CIELAB =
"Cielab".freeze
ICCLAB =
"Icclab".freeze
ITULAB =
"Itulab".freeze
LOGL =
"Logl".freeze
LOGLUV =
"Logluv".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



24
25
26
27
28
# File 'lib/aspose_cad_cloud/models/tiff_photometrics.rb', line 24

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