Class: AsposePdfCloud::FieldType
- Inherits:
-
Object
- Object
- AsposePdfCloud::FieldType
- Defined in:
- lib/aspose_pdf_cloud/models/field_type.rb
Constant Summary collapse
- TEXT =
"Text".freeze
- INTEGER =
"Integer".freeze
- BOOLEAN =
"Boolean".freeze
- LIST =
"List".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
36 37 38 39 40 41 42 43 |
# File 'lib/aspose_pdf_cloud/models/field_type.rb', line 36 def build_from_hash(value) # resolve issue with Concstant Name modification (ex: "FooName" to :FOO_NAME) # consantValues = FieldType.constants.select{|c| c.to_s == value} constantValues = FieldType.constants.select{ |const_name| FieldType.const_get(const_name) == value} raise "Invalid ENUM value #{value} for class #FieldType" if constantValues.empty? value end |