Class: AsposeCadCloud::CompressionMethod

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

Constant Summary collapse

RAW =
"Raw".freeze
RLE =
"RLE".freeze
ZIP_WITHOUT_PREDICTION =
"ZipWithoutPrediction".freeze
ZIP_WITH_PREDICTION =
"ZipWithPrediction".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



16
17
18
19
20
# File 'lib/aspose_cad_cloud/models/compression_method.rb', line 16

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