Class: CalInvite::Providers::Outlook
- Inherits:
-
BaseProvider
- Object
- BaseProvider
- CalInvite::Providers::Outlook
- Defined in:
- lib/cal_invite/providers/outlook.rb
Overview
Microsoft Outlook Live (outlook.live.com) provider for generating calendar event URLs. This provider generates URLs that open the Outlook.com web calendar with a pre-filled event creation form. Supports both all-day and time-specific events.
Note: This is for personal Outlook.com accounts. For corporate Office 365, use the Office365 provider instead.
Instance Attribute Summary
Attributes inherited from BaseProvider
Instance Method Summary collapse
-
#generate ⇒ String
Generates an Outlook.com calendar URL for the event.
Methods inherited from BaseProvider
Constructor Details
This class inherits a constructor from BaseProvider
Instance Method Details
#generate ⇒ String
Generates an Outlook.com calendar URL for the event. Automatically handles both all-day and time-specific events.
42 43 44 45 46 47 48 |
# File 'lib/cal_invite/providers/outlook.rb', line 42 def generate if event.all_day generate_all_day_event else generate_single_event end end |