Class: CalendarApi::CalendarNotificationMethod
- Inherits:
-
Object
- Object
- CalendarApi::CalendarNotificationMethod
- Defined in:
- lib/calendar_api/models/calendar_notification_method.rb
Overview
The method used to deliver the notification. Currently only “email” is supported.
Constant Summary collapse
- CALENDAR_NOTIFICATION_METHOD =
[ # TODO: Write general description for EMAIL EMAIL = 'email'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = EMAIL) ⇒ Object
21 22 23 24 25 |
# File 'lib/calendar_api/models/calendar_notification_method.rb', line 21 def self.from_value(value, default_value = EMAIL) return default_value if value.nil? default_value end |
.validate(value) ⇒ Object
15 16 17 18 19 |
# File 'lib/calendar_api/models/calendar_notification_method.rb', line 15 def self.validate(value) return false if value.nil? CALENDAR_NOTIFICATION_METHOD.include?(value) end |