Class: Batches::ErrorCode2
- Inherits:
-
Object
- Object
- Batches::ErrorCode2
- Defined in:
- lib/batches/models/error_code2.rb
Overview
This action is not authorized with the credentials being used.
Constant Summary collapse
- ERROR_CODE2 =
[ # TODO: Write general description for ACTION_NOT_AUTHORIZED ACTION_NOT_AUTHORIZED = 'ACTION_NOT_AUTHORIZED'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = ACTION_NOT_AUTHORIZED) ⇒ Object
20 21 22 23 24 |
# File 'lib/batches/models/error_code2.rb', line 20 def self.from_value(value, default_value = ACTION_NOT_AUTHORIZED) return default_value if value.nil? default_value end |
.validate(value) ⇒ Object
14 15 16 17 18 |
# File 'lib/batches/models/error_code2.rb', line 14 def self.validate(value) return false if value.nil? ERROR_CODE2.include?(value) end |