Class: ShellEv::OpeningHoursObjectWeekDayEnum
- Inherits:
-
Object
- Object
- ShellEv::OpeningHoursObjectWeekDayEnum
- Defined in:
- lib/shell_ev/models/opening_hours_object_week_day_enum.rb
Overview
3 letter day of the week
Constant Summary collapse
- OPENING_HOURS_OBJECT_WEEK_DAY_ENUM =
[ # TODO: Write general description for SUN SUN = 'Sun'.freeze, # TODO: Write general description for MON MON = 'Mon'.freeze, # TODO: Write general description for TUE TUE = 'Tue'.freeze, # TODO: Write general description for WED WED = 'Wed'.freeze, # TODO: Write general description for THU THU = 'Thu'.freeze, # TODO: Write general description for FRI FRI = 'Fri'.freeze, # TODO: Write general description for SAT SAT = 'Sat'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.validate(value) ⇒ Object
32 33 34 35 36 |
# File 'lib/shell_ev/models/opening_hours_object_week_day_enum.rb', line 32 def self.validate(value) return false if value.nil? OPENING_HOURS_OBJECT_WEEK_DAY_ENUM.include?(value) end |