class AsposePdfCloud::StampIcon
Constants
- APPROVED
- AS_IS
- CONFIDENTIAL
- DEPARTMENTAL
- DRAFT
- EXPERIMENTAL
- EXPIRED
- FINAL
- FOR_COMMENT
- FOR_PUBLIC_RELEASE
- NOT_APPROVED
- NOT_FOR_PUBLIC_RELEASE
- SOLD
- TOP_SECRET
Public Instance Methods
build_from_hash(value)
click to toggle source
Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value
# 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