Class: AsposePdfCloud::VerticalAlignment
- Inherits:
-
Object
- Object
- AsposePdfCloud::VerticalAlignment
- Defined in:
- lib/aspose_pdf_cloud/models/vertical_alignment.rb
Constant Summary collapse
- NONE =
"None".freeze
- TOP =
"Top".freeze
- CENTER =
"Center".freeze
- BOTTOM =
"Bottom".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/vertical_alignment.rb', line 36 def build_from_hash(value) # resolve issue with Concstant Name modification (ex: "FooName" to :FOO_NAME) # consantValues = VerticalAlignment.constants.select{|c| c.to_s == value} constantValues = VerticalAlignment.constants.select{ |const_name| VerticalAlignment.const_get(const_name) == value} raise "Invalid ENUM value #{value} for class #VerticalAlignment" if constantValues.empty? value end |