Class: OryClient::VerificationErrorCode

Inherits:
Object
  • Object
show all
Defined in:
lib/ory-client/models/verification_error_code.rb

Constant Summary collapse

VERIFICATION_ERROR_UNSPECIFIED =
"VERIFICATION_ERROR_UNSPECIFIED".freeze
VERIFICATION_ERROR_INVALID_FORMAT =
"VERIFICATION_ERROR_INVALID_FORMAT".freeze
VERIFICATION_ERROR_EXPIRED =
"VERIFICATION_ERROR_EXPIRED".freeze
VERIFICATION_ERROR_REVOKED =
"VERIFICATION_ERROR_REVOKED".freeze
VERIFICATION_ERROR_NOT_FOUND =
"VERIFICATION_ERROR_NOT_FOUND".freeze
VERIFICATION_ERROR_SIGNATURE_INVALID =
"VERIFICATION_ERROR_SIGNATURE_INVALID".freeze
VERIFICATION_ERROR_INTERNAL =
"VERIFICATION_ERROR_INTERNAL".freeze
VERIFICATION_ERROR_IP_NOT_ALLOWED =
"VERIFICATION_ERROR_IP_NOT_ALLOWED".freeze
VERIFICATION_ERROR_RATE_LIMITED =
"VERIFICATION_ERROR_RATE_LIMITED".freeze
VERIFICATION_ERROR_AUDIENCE_MISMATCH =
"VERIFICATION_ERROR_AUDIENCE_MISMATCH".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_vars ⇒ Object



29
30
31
# File 'lib/ory-client/models/verification_error_code.rb', line 29

def self.all_vars
  @all_vars ||= [VERIFICATION_ERROR_UNSPECIFIED, VERIFICATION_ERROR_INVALID_FORMAT, VERIFICATION_ERROR_EXPIRED, VERIFICATION_ERROR_REVOKED, VERIFICATION_ERROR_NOT_FOUND, VERIFICATION_ERROR_SIGNATURE_INVALID, VERIFICATION_ERROR_INTERNAL, VERIFICATION_ERROR_IP_NOT_ALLOWED, VERIFICATION_ERROR_RATE_LIMITED, VERIFICATION_ERROR_AUDIENCE_MISMATCH].freeze
end

.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



36
37
38
# File 'lib/ory-client/models/verification_error_code.rb', line 36

def self.build_from_hash(value)
  new.build_from_hash(value)
end

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



43
44
45
46
# File 'lib/ory-client/models/verification_error_code.rb', line 43

def build_from_hash(value)
  return value if VerificationErrorCode.all_vars.include?(value)
  raise "Invalid ENUM value #{value} for class #VerificationErrorCode"
end