Class: AsposeCadCloud::SmoothingMode

Inherits:
Object
  • Object
show all
Defined in:
lib/aspose_cad_cloud/models/smoothing_mode.rb

Constant Summary collapse

DEFAULT =
"Default".freeze
HIGH_SPEED =
"HighSpeed".freeze
HIGH_QUALITY =
"HighQuality".freeze
NONE =
"None".freeze
ANTI_ALIAS =
"AntiAlias".freeze
INVALID =
"Invalid".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



18
19
20
21
22
# File 'lib/aspose_cad_cloud/models/smoothing_mode.rb', line 18

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