Class: AsposePdfCloud::CompressionType
- Inherits:
-
Object
- Object
- AsposePdfCloud::CompressionType
- Defined in:
- lib/aspose_pdf_cloud/models/compression_type.rb
Constant Summary collapse
- LZW =
"LZW".freeze
- CCITT4 =
"CCITT4".freeze
- CCITT3 =
"CCITT3".freeze
- RLE =
"RLE".freeze
- NONE =
"None".freeze
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
37 38 39 40 41 42 43 44 |
# File 'lib/aspose_pdf_cloud/models/compression_type.rb', line 37 def build_from_hash(value) # resolve issue with Concstant Name modification (ex: "FooName" to :FOO_NAME) # consantValues = CompressionType.constants.select{|c| c.to_s == value} constantValues = CompressionType.constants.select{ |const_name| CompressionType.const_get(const_name) == value} raise "Invalid ENUM value #{value} for class #CompressionType" if constantValues.empty? value end |