Class: AsposeCadCloud::LineCap

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

Constant Summary collapse

FLAT =
"Flat".freeze
SQUARE =
"Square".freeze
ROUND =
"Round".freeze
TRIANGLE =
"Triangle".freeze
NO_ANCHOR =
"NoAnchor".freeze
SQUARE_ANCHOR =
"SquareAnchor".freeze
ROUND_ANCHOR =
"RoundAnchor".freeze
DIAMOND_ANCHOR =
"DiamondAnchor".freeze
ARROW_ANCHOR =
"ArrowAnchor".freeze
ANCHOR_MASK =
"AnchorMask".freeze
CUSTOM =
"Custom".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



23
24
25
26
27
# File 'lib/aspose_cad_cloud/models/line_cap.rb', line 23

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