Class: OryClient::BatchImportErrorCode
- Inherits:
-
Object
- Object
- OryClient::BatchImportErrorCode
- Defined in:
- lib/ory-client/models/batch_import_error_code.rb
Constant Summary collapse
- BATCH_IMPORT_ERROR_UNSPECIFIED =
"BATCH_IMPORT_ERROR_UNSPECIFIED".freeze
- BATCH_IMPORT_ERROR_INVALID_ARGUMENT =
"BATCH_IMPORT_ERROR_INVALID_ARGUMENT".freeze
- BATCH_IMPORT_ERROR_ALREADY_EXISTS =
"BATCH_IMPORT_ERROR_ALREADY_EXISTS".freeze
- BATCH_IMPORT_ERROR_FAILED_PRECONDITION =
"BATCH_IMPORT_ERROR_FAILED_PRECONDITION".freeze
- BATCH_IMPORT_ERROR_INTERNAL =
"BATCH_IMPORT_ERROR_INTERNAL".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
24 25 26 |
# File 'lib/ory-client/models/batch_import_error_code.rb', line 24 def self.all_vars @all_vars ||= [BATCH_IMPORT_ERROR_UNSPECIFIED, BATCH_IMPORT_ERROR_INVALID_ARGUMENT, BATCH_IMPORT_ERROR_ALREADY_EXISTS, BATCH_IMPORT_ERROR_FAILED_PRECONDITION, BATCH_IMPORT_ERROR_INTERNAL].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
31 32 33 |
# File 'lib/ory-client/models/batch_import_error_code.rb', line 31 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
38 39 40 41 |
# File 'lib/ory-client/models/batch_import_error_code.rb', line 38 def build_from_hash(value) return value if BatchImportErrorCode.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #BatchImportErrorCode" end |