Class: Verizon::RequestStatusEnum

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

Overview

The current status of the callback response.

Constant Summary collapse

REQUEST_STATUS_ENUM =
[
  # TODO: Write general description for PENDING
  PENDING = 'Pending'.freeze,

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

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

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



20
21
22
23
24
# File 'lib/verizon/models/request_status_enum.rb', line 20

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

  REQUEST_STATUS_ENUM.include?(value)
end