Class: OryClient::VerificationErrorCode
- Inherits:
-
Object
- Object
- OryClient::VerificationErrorCode
- 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
Class Method Summary collapse
- .all_vars ⇒ Object
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.all_vars ⇒ Object
28 29 30 |
# File 'lib/ory-client/models/verification_error_code.rb', line 28 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].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
35 36 37 |
# File 'lib/ory-client/models/verification_error_code.rb', line 35 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
42 43 44 45 |
# File 'lib/ory-client/models/verification_error_code.rb', line 42 def build_from_hash(value) return value if VerificationErrorCode.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #VerificationErrorCode" end |