Class: ShellEv::EvseVOStatusEnum
- Inherits:
-
Object
- Object
- ShellEv::EvseVOStatusEnum
- Defined in:
- lib/shell_ev/models/evse_vo_status_enum.rb
Overview
The current status of the EVSE units availability
Constant Summary collapse
- EVSE_VO_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/evse_vo_status_enum.rb', line 23 def self.validate(value) return false if value.nil? EVSE_VO_STATUS_ENUM.include?(value) end |