Class: Batches::ErrorCode5
- Inherits:
-
Object
- Object
- Batches::ErrorCode5
- Defined in:
- lib/batches/models/error_code5.rb
Overview
This is an error indicating there was an issue connecting to a partner system..
Constant Summary collapse
- ERROR_CODE5 =
[ # TODO: Write general description for UNAUTHORIZED_DOWNSTREAM UNAUTHORIZED_DOWNSTREAM = 'UNAUTHORIZED_DOWNSTREAM'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = UNAUTHORIZED_DOWNSTREAM) ⇒ Object
21 22 23 24 25 |
# File 'lib/batches/models/error_code5.rb', line 21 def self.from_value(value, default_value = UNAUTHORIZED_DOWNSTREAM) return default_value if value.nil? default_value end |
.validate(value) ⇒ Object
15 16 17 18 19 |
# File 'lib/batches/models/error_code5.rb', line 15 def self.validate(value) return false if value.nil? ERROR_CODE5.include?(value) end |