Class: Batches::ErrorCode1
- Inherits:
-
Object
- Object
- Batches::ErrorCode1
- Defined in:
- lib/batches/models/error_code1.rb
Overview
This action failed as token in the request is not valid.
Constant Summary collapse
- ERROR_CODE1 =
[ # TODO: Write general description for NOT_AUTHENTICATED NOT_AUTHENTICATED = 'NOT_AUTHENTICATED'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = NOT_AUTHENTICATED) ⇒ Object
20 21 22 23 24 |
# File 'lib/batches/models/error_code1.rb', line 20 def self.from_value(value, default_value = NOT_AUTHENTICATED) return default_value if value.nil? default_value end |
.validate(value) ⇒ Object
14 15 16 17 18 |
# File 'lib/batches/models/error_code1.rb', line 14 def self.validate(value) return false if value.nil? ERROR_CODE1.include?(value) end |