Class: AsposePdfCloud::StampIcon
- Inherits:
-
Object
- Object
- AsposePdfCloud::StampIcon
- Defined in:
- lib/aspose_pdf_cloud/models/stamp_icon.rb
Constant Summary collapse
- DRAFT =
"Draft".freeze
- APPROVED =
"Approved".freeze
- EXPERIMENTAL =
"Experimental".freeze
- NOT_APPROVED =
"NotApproved".freeze
- AS_IS =
"AsIs".freeze
- EXPIRED =
"Expired".freeze
- NOT_FOR_PUBLIC_RELEASE =
"NotForPublicRelease".freeze
- CONFIDENTIAL =
"Confidential".freeze
- FINAL =
"Final".freeze
- SOLD =
"Sold".freeze
- DEPARTMENTAL =
"Departmental".freeze
- FOR_COMMENT =
"ForComment".freeze
- FOR_PUBLIC_RELEASE =
"ForPublicRelease".freeze
- TOP_SECRET =
"TopSecret".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
46 47 48 49 50 51 52 53 |
# File 'lib/aspose_pdf_cloud/models/stamp_icon.rb', line 46 def build_from_hash(value) # resolve issue with Concstant Name modification (ex: "FooName" to :FOO_NAME) # consantValues = StampIcon.constants.select{|c| c.to_s == value} constantValues = StampIcon.constants.select{ |const_name| StampIcon.const_get(const_name) == value} raise "Invalid ENUM value #{value} for class #StampIcon" if constantValues.empty? value end |