Class: Verizon::UpgradeStatusEnum

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

Overview

The status of the upgrades that you want to retrieve.

Constant Summary collapse

UPGRADE_STATUS_ENUM =
[
  # TODO: Write general description for REQUESTPENDING
  REQUESTPENDING = 'RequestPending'.freeze,

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

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

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

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

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

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



29
30
31
32
33
# File 'lib/verizon/models/upgrade_status_enum.rb', line 29

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

  UPGRADE_STATUS_ENUM.include?(value)
end