Class: AsposePdfCloud::AnnotationFlags
- Inherits:
-
Object
- Object
- AsposePdfCloud::AnnotationFlags
- Defined in:
- lib/aspose_pdf_cloud/models/annotation_flags.rb
Constant Summary collapse
- DEFAULT =
"Default".freeze
- INVISIBLE =
"Invisible".freeze
- HIDDEN =
"Hidden".freeze
- PRINT =
"Print".freeze
- NO_ZOOM =
"NoZoom".freeze
- NO_ROTATE =
"NoRotate".freeze
- NO_VIEW =
"NoView".freeze
- READ_ONLY =
"ReadOnly".freeze
- LOCKED =
"Locked".freeze
- TOGGLE_NO_VIEW =
"ToggleNoView".freeze
- LOCKED_CONTENTS =
"LockedContents".freeze
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
43 44 45 46 47 48 49 50 |
# File 'lib/aspose_pdf_cloud/models/annotation_flags.rb', line 43 def build_from_hash(value) # resolve issue with Concstant Name modification (ex: "FooName" to :FOO_NAME) # consantValues = AnnotationFlags.constants.select{|c| c.to_s == value} constantValues = AnnotationFlags.constants.select{ |const_name| AnnotationFlags.const_get(const_name) == value} raise "Invalid ENUM value #{value} for class #AnnotationFlags" if constantValues.empty? value end |