Class: Batches::DetailedErrorCode
- Inherits:
-
Object
- Object
- Batches::DetailedErrorCode
- Defined in:
- lib/batches/models/detailed_error_code.rb
Overview
Unique reference to identify the error.
Constant Summary collapse
- DETAILED_ERROR_CODE =
[ # TODO: Write general description for ENUM_40016 ENUM_40016 = '40016'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = ENUM_40016) ⇒ Object
20 21 22 23 24 |
# File 'lib/batches/models/detailed_error_code.rb', line 20 def self.from_value(value, default_value = ENUM_40016) return default_value if value.nil? default_value end |
.validate(value) ⇒ Object
14 15 16 17 18 |
# File 'lib/batches/models/detailed_error_code.rb', line 14 def self.validate(value) return false if value.nil? DETAILED_ERROR_CODE.include?(value) end |