Class: AsposeSlidesCloud::AxisType

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

Constant Summary collapse

HORIZONTAL_AXIS =
'HorizontalAxis'.freeze
VERTICAL_AXIS =
'VerticalAxis'.freeze
SECONDARY_HORIZONTAL_AXIS =
'SecondaryHorizontalAxis'.freeze
SECONDARY_VERTICAL_AXIS =
'SecondaryVerticalAxis'.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



36
37
38
39
40
# File 'lib/aspose_slides_cloud/models/axis_type.rb', line 36

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