Class: Batches::ErrorCode3
- Inherits:
-
Object
- Object
- Batches::ErrorCode3
- Defined in:
- lib/batches/models/error_code3.rb
Overview
This indicates an unexpected issue occurred on the Global Payments system.
Constant Summary collapse
- ERROR_CODE3 =
[ # TODO: Write general description for SYSTEM_ERROR_DOWNSTREAM SYSTEM_ERROR_DOWNSTREAM = 'SYSTEM_ERROR_DOWNSTREAM'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = SYSTEM_ERROR_DOWNSTREAM) ⇒ Object
20 21 22 23 24 |
# File 'lib/batches/models/error_code3.rb', line 20 def self.from_value(value, default_value = SYSTEM_ERROR_DOWNSTREAM) return default_value if value.nil? default_value end |
.validate(value) ⇒ Object
14 15 16 17 18 |
# File 'lib/batches/models/error_code3.rb', line 14 def self.validate(value) return false if value.nil? ERROR_CODE3.include?(value) end |