Class: Google::Apis::CalendarV3::EventReminder
- Inherits:
-
Object
- Object
- Google::Apis::CalendarV3::EventReminder
- Defined in:
- generated/google/apis/calendar_v3/classes.rb,
generated/google/apis/calendar_v3/representations.rb,
generated/google/apis/calendar_v3/representations.rb
Instance Attribute Summary collapse
-
#minutes ⇒ Fixnum
Number of minutes before the start of the event when the reminder should trigger.
-
#reminder_method ⇒ String
The method used by this reminder.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EventReminder
constructor
A new instance of EventReminder.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ EventReminder
Returns a new instance of EventReminder
1803 1804 1805 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 1803 def initialize(**args) update!(**args) end |
Instance Attribute Details
#minutes ⇒ Fixnum
Number of minutes before the start of the event when the reminder should
trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
Required when adding a reminder.
Corresponds to the JSON property minutes
1801 1802 1803 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 1801 def minutes @minutes end |
#reminder_method ⇒ String
The method used by this reminder. Possible values are:
- "email" - Reminders are sent via email.
- "sms" - Deprecated. Once this feature is shutdown, the API will no longer return reminders using this method. Any newly added SMS reminders will be ignored. See Google Calendar SMS notifications to be removed for more information. Reminders are sent via SMS. These are only available for G Suite customers. Requests to set SMS reminders for other account types are ignored.
- "popup" - Reminders are sent via a UI popup.
Required when adding a reminder.
Corresponds to the JSON property
method
1794 1795 1796 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 1794 def reminder_method @reminder_method end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1808 1809 1810 1811 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 1808 def update!(**args) @reminder_method = args[:reminder_method] if args.key?(:reminder_method) @minutes = args[:minutes] if args.key?(:minutes) end |