class AsposePdfCloud::RasterImagesSavingModes

Constants

AS_EMBEDDED_PARTS_OF_PNG_PAGE_BACKGROUND
AS_EXTERNAL_PNG_FILES_REFERENCED_VIA_SVG
AS_PNG_IMAGES_EMBEDDED_INTO_SVG

Public Instance Methods

build_from_hash(value) click to toggle source

Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value

# 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