Class: CalInvite::Providers::Yahoo
- Inherits:
-
BaseProvider
- Object
- BaseProvider
- CalInvite::Providers::Yahoo
- Defined in:
- lib/cal_invite/providers/yahoo.rb
Overview
Yahoo Calendar provider for generating calendar event URLs. This provider generates URLs that open the Yahoo Calendar with a pre-filled event creation form. Supports all-day events, regular events, and multi-day sessions with proper timezone handling.
Note: Yahoo Calendar handles multi-day sessions differently from other providers, generating separate event URLs for each session.
Constant Summary collapse
- BASE_URL =
Base URL for Yahoo Calendar
"https://calendar.yahoo.com"
Instance Attribute Summary
Attributes inherited from BaseProvider
Instance Method Summary collapse
-
#generate ⇒ String
Generates Yahoo Calendar URL(s) for the event.
Methods inherited from BaseProvider
Constructor Details
This class inherits a constructor from BaseProvider
Instance Method Details
#generate ⇒ String
Generates Yahoo Calendar URL(s) for the event. Handles all event types: all-day, regular, and multi-day sessions.
44 45 46 47 48 49 50 51 52 |
# File 'lib/cal_invite/providers/yahoo.rb', line 44 def generate if event.all_day generate_all_day_event elsif event.multi_day_sessions.any? generate_multi_day_event else generate_single_event end end |