Method: OryClient::IdentityCredentialsType#build_from_hash
- Defined in:
- lib/ory-client/models/identity_credentials_type.rb
#build_from_hash(value) ⇒ String
Builds the enum from string
34 35 36 37 38 |
# File 'lib/ory-client/models/identity_credentials_type.rb', line 34 def build_from_hash(value) constantValues = IdentityCredentialsType.constants.select { |c| IdentityCredentialsType::const_get(c) == value } raise "Invalid ENUM value #{value} for class #IdentityCredentialsType" if constantValues.empty? value end |