Class: AsposeSlidesCloud::ShapesAlignmentType

Inherits:
Object
  • Object
show all
Defined in:
lib/aspose_slides_cloud/models/shapes_alignment_type.rb

Constant Summary collapse

ALIGN_LEFT =
'AlignLeft'.freeze
ALIGN_RIGHT =
'AlignRight'.freeze
ALIGN_CENTER =
'AlignCenter'.freeze
ALIGN_TOP =
'AlignTop'.freeze
ALIGN_MIDDLE =
'AlignMiddle'.freeze
ALIGN_BOTTOM =
'AlignBottom'.freeze
DISTRIBUTE_HORIZONTALLY =
'DistributeHorizontally'.freeze
DISTRIBUTE_VERTICALLY =
'DistributeVertically'.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



40
41
42
43
44
# File 'lib/aspose_slides_cloud/models/shapes_alignment_type.rb', line 40

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