Class: AsposePdfCloud::RasterImagesSavingModes
- Inherits:
-
Object
- Object
- AsposePdfCloud::RasterImagesSavingModes
- Defined in:
- lib/aspose_pdf_cloud/models/raster_images_saving_modes.rb
Constant Summary collapse
- AS_PNG_IMAGES_EMBEDDED_INTO_SVG =
"AsPngImagesEmbeddedIntoSvg".freeze
- AS_EXTERNAL_PNG_FILES_REFERENCED_VIA_SVG =
"AsExternalPngFilesReferencedViaSvg".freeze
- AS_EMBEDDED_PARTS_OF_PNG_PAGE_BACKGROUND =
"AsEmbeddedPartsOfPngPageBackground".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
35 36 37 38 39 40 41 42 |
# File 'lib/aspose_pdf_cloud/models/raster_images_saving_modes.rb', line 35 def build_from_hash(value) # resolve issue with Concstant Name modification (ex: "FooName" to :FOO_NAME) # consantValues = RasterImagesSavingModes.constants.select{|c| c.to_s == value} constantValues = RasterImagesSavingModes.constants.select{ |const_name| RasterImagesSavingModes.const_get(const_name) == value} raise "Invalid ENUM value #{value} for class #RasterImagesSavingModes" if constantValues.empty? value end |