Class: AsposeCadCloud::BitmapCompression

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

Constant Summary collapse

RGB =
"Rgb".freeze
RLE8 =
"Rle8".freeze
RLE4 =
"Rle4".freeze
BITFIELDS =
"Bitfields".freeze
JPEG =
"Jpeg".freeze
PNG =
"Png".freeze
ALPHA_BITFIELDS =
"AlphaBitfields".freeze
DXT1 =
"Dxt1".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/bitmap_compression.rb', line 20

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