Class: CalendarApi::ConferenceSolutionType
- Inherits:
-
Object
- Object
- CalendarApi::ConferenceSolutionType
- Defined in:
- lib/calendar_api/models/conference_solution_type.rb
Overview
ConferenceSolutionType object.
Constant Summary collapse
- CONFERENCE_SOLUTION_TYPE =
[ # TODO: Write general description for EVENTHANGOUT EVENTHANGOUT = 'eventHangout'.freeze, # TODO: Write general description for EVENTNAMEDHANGOUT EVENTNAMEDHANGOUT = 'eventNamedHangout'.freeze, # TODO: Write general description for HANGOUTSMEET HANGOUTSMEET = 'hangoutsMeet'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = EVENTHANGOUT) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/calendar_api/models/conference_solution_type.rb', line 26 def self.from_value(value, default_value = EVENTHANGOUT) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'eventhangout' then EVENTHANGOUT when 'eventnamedhangout' then EVENTNAMEDHANGOUT when 'hangoutsmeet' then HANGOUTSMEET else default_value end end |
.validate(value) ⇒ Object
20 21 22 23 24 |
# File 'lib/calendar_api/models/conference_solution_type.rb', line 20 def self.validate(value) return false if value.nil? CONFERENCE_SOLUTION_TYPE.include?(value) end |