Class: Availability::TolerantIcalendarParser
- Inherits:
-
Icalendar::Parser
- Object
- Icalendar::Parser
- Availability::TolerantIcalendarParser
- Defined in:
- lib/availability/tolerant_icalendar_parser.rb
Overview
Isolates property-level iCalendar failures to the VEVENT that contains them.
Constant Summary collapse
- INVALID_MARKER =
:@availability_invalid_event- SUPPORTED_VALUE_TYPES =
%w[ BINARY BOOLEAN CAL-ADDRESS DATE DATE-TIME DURATION FLOAT INTEGER PERIOD RECUR TEXT TIME URI UTC-OFFSET ].freeze
Class Method Summary collapse
Class Method Details
.invalid_event?(event) ⇒ Boolean
13 14 15 |
# File 'lib/availability/tolerant_icalendar_parser.rb', line 13 def self.invalid_event?(event) event.instance_variable_defined?(INVALID_MARKER) end |