Class: AsposePdfCloud::TextIcon
- Inherits:
-
Object
- Object
- AsposePdfCloud::TextIcon
- Defined in:
- lib/aspose_pdf_cloud/models/text_icon.rb
Constant Summary collapse
- NOTE =
"Note".freeze
- COMMENT =
"Comment".freeze
- KEY =
"Key".freeze
- HELP =
"Help".freeze
- NEW_PARAGRAPH =
"NewParagraph".freeze
- PARAGRAPH =
"Paragraph".freeze
- INSERT =
"Insert".freeze
- CHECK =
"Check".freeze
- CROSS =
"Cross".freeze
- CIRCLE =
"Circle".freeze
- STAR =
"Star".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/text_icon.rb', line 43 def build_from_hash(value) # resolve issue with Concstant Name modification (ex: "FooName" to :FOO_NAME) # consantValues = TextIcon.constants.select{|c| c.to_s == value} constantValues = TextIcon.constants.select{ |const_name| TextIcon.const_get(const_name) == value} raise "Invalid ENUM value #{value} for class #TextIcon" if constantValues.empty? value end |