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

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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