Class: ShellEv::GetEVLocationsEvseStatusEnum

Inherits:
Object
  • Object
show all
Defined in:
lib/shell_ev/models/get_ev_locations_evse_status_enum.rb

Overview

getEVLocationsEvseStatus.

Constant Summary collapse

GET_EV_LOCATIONS_EVSE_STATUS_ENUM =
[
  # TODO: Write general description for AVAILABLE
  AVAILABLE = 'Available'.freeze,

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

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

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

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



23
24
25
26
27
# File 'lib/shell_ev/models/get_ev_locations_evse_status_enum.rb', line 23

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

  GET_EV_LOCATIONS_EVSE_STATUS_ENUM.include?(value)
end