Class: Google::Apis::CalendarV3::EventReminder

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ EventReminder

Returns a new instance of EventReminder.


1791
1792
1793
# File 'generated/google/apis/calendar_v3/classes.rb', line 1791

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#minutesFixnum

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

Returns:

  • (Fixnum)

1789
1790
1791
# File 'generated/google/apis/calendar_v3/classes.rb', line 1789

def minutes
  @minutes
end

#reminder_methodString

The method used by this reminder. Possible values are: - "email" - Reminders are sent via email. - "popup" - Reminders are sent via a UI popup. Required when adding a reminder. Corresponds to the JSON property method

Returns:

  • (String)

1782
1783
1784
# File 'generated/google/apis/calendar_v3/classes.rb', line 1782

def reminder_method
  @reminder_method
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1796
1797
1798
1799
# File 'generated/google/apis/calendar_v3/classes.rb', line 1796

def update!(**args)
  @reminder_method = args[:reminder_method] if args.key?(:reminder_method)
  @minutes = args[:minutes] if args.key?(:minutes)
end