Class: AsposeCadCloud::PdfDigitalSignatureHashAlgorithmCore

Inherits:
Object
  • Object
show all
Defined in:
lib/aspose_cad_cloud/models/pdf_digital_signature_hash_algorithm_core.rb

Constant Summary collapse

SHA1 =
"Sha1".freeze
SHA256 =
"Sha256".freeze
SHA384 =
"Sha384".freeze
SHA512 =
"Sha512".freeze
MD5 =
"Md5".freeze

Instance Method Summary collapse

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



17
18
19
20
21
# File 'lib/aspose_cad_cloud/models/pdf_digital_signature_hash_algorithm_core.rb', line 17

def build_from_hash(value)
  constantValues = PdfDigitalSignatureHashAlgorithmCore.constants.select{|c| PdfDigitalSignatureHashAlgorithmCore::const_get(c) == value}
  raise "Invalid ENUM value #{value} for class #PdfDigitalSignatureHashAlgorithmCore" if constantValues.empty?
  value
end