class AsposePdfCloud::AnnotationType
Constants
- CARET
- CIRCLE
- FILE_ATTACHMENT
- FREE_TEXT
- HIGHLIGHT
- INK
- LINE
- LINK
- MOVIE
- PDF3_D
- POLYGON
- POLY_LINE
- POPUP
- PRINTER_MARK
- REDACTION
- RICH_MEDIA
- SCREEN
- SOUND
- SQUARE
- SQUIGGLY
- STAMP
- STRIKE_OUT
- TEXT
- TRAP_NET
- UNDERLINE
- UNKNOWN
- WATERMARK
- WIDGET
Public Instance Methods
Source
# File lib/aspose_pdf_cloud/models/annotation_type.rb, line 60 def build_from_hash(value) # resolve issue with Concstant Name modification (ex: "FooName" to :FOO_NAME) # consantValues = AnnotationType.constants.select{|c| c.to_s == value} constantValues = AnnotationType.constants.select{ |const_name| AnnotationType.const_get(const_name) == value} raise "Invalid ENUM value #{value} for class #AnnotationType" if constantValues.empty? value end
Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value