Class: Verizon::ErrorResponseCodeEnum

Inherits:
Object
  • Object
show all
Defined in:
lib/verizon/models/error_response_code_enum.rb

Overview

Error Code.

Constant Summary collapse

ERROR_RESPONSE_CODE_ENUM =
[
  # TODO: Write general description for INVALID_ACCESS
  INVALID_ACCESS = 'INVALID_ACCESS'.freeze,

  # TODO: Write general description for INVALID_PARAMETER
  INVALID_PARAMETER = 'INVALID_PARAMETER'.freeze,

  # TODO: Write general description for INTERNAL_ERROR
  INTERNAL_ERROR = 'INTERNAL_ERROR'.freeze,

  # TODO: Write general description for SUCCESS
  SUCCESS = 'SUCCESS'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



23
24
25
26
27
# File 'lib/verizon/models/error_response_code_enum.rb', line 23

def self.validate(value)
  return false if value.nil?

  ERROR_RESPONSE_CODE_ENUM.include?(value)
end