Class: AsposePdfCloud::AnnotationState
- Inherits:
-
Object
- Object
- AsposePdfCloud::AnnotationState
- Defined in:
- lib/aspose_pdf_cloud/models/annotation_state.rb
Constant Summary collapse
- UNDEFINED =
"Undefined".freeze
- MARKED =
"Marked".freeze
- UNMARKED =
"Unmarked".freeze
- ACCEPTED =
"Accepted".freeze
- REJECTED =
"Rejected".freeze
- CANCELLED =
"Cancelled".freeze
- COMPLETED =
"Completed".freeze
- NONE =
"None".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
40 41 42 43 44 45 46 47 |
# File 'lib/aspose_pdf_cloud/models/annotation_state.rb', line 40 def build_from_hash(value) # resolve issue with Concstant Name modification (ex: "FooName" to :FOO_NAME) # consantValues = AnnotationState.constants.select{|c| c.to_s == value} constantValues = AnnotationState.constants.select{ |const_name| AnnotationState.const_get(const_name) == value} raise "Invalid ENUM value #{value} for class #AnnotationState" if constantValues.empty? value end |