Class: AsposeSlidesCloud::ScaleType
- Inherits:
-
Object
- Object
- AsposeSlidesCloud::ScaleType
- Defined in:
- lib/aspose_slides_cloud/models/scale_type.rb
Constant Summary collapse
- DO_NOT_SCALE =
"DoNotScale".freeze
- ENSURE_FIT =
"EnsureFit".freeze
- MAXIMIZE =
"Maximize".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 |
# File 'lib/aspose_slides_cloud/models/scale_type.rb', line 35 def build_from_hash(value) constantValues = ScaleType.constants.select { |c| ScaleType::const_get(c) == value } raise "Invalid ENUM value #{value} for class #ScaleType" if constantValues.empty? value end |