Class: CalInvite::Providers::Google
- Inherits:
-
BaseProvider
- Object
- BaseProvider
- CalInvite::Providers::Google
- Defined in:
- lib/cal_invite/providers/google.rb
Overview
Google Calendar provider for generating event URLs. This provider generates URLs that open the Google Calendar event creation page with pre-filled event details.
Instance Attribute Summary
Attributes inherited from BaseProvider
Instance Method Summary collapse
-
#generate ⇒ String
Generates a Google Calendar URL for the event.
Methods inherited from BaseProvider
Constructor Details
This class inherits a constructor from BaseProvider
Instance Method Details
#generate ⇒ String
Generates a Google Calendar URL for the event. Handles both regular and all-day events appropriately.
34 35 36 37 38 39 40 |
# File 'lib/cal_invite/providers/google.rb', line 34 def generate if event.all_day generate_all_day_event else generate_single_event end end |