Class: AsposeCadCloud::Jpeg2000Codec

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

Constant Summary collapse

J2_K =
"J2K".freeze
JP2 =
"Jp2".freeze
JPT =
"Jpt".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



15
16
17
18
19
# File 'lib/aspose_cad_cloud/models/jpeg2000_codec.rb', line 15

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