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