class Google::Apis::CalendarV3::Calendar

Attributes

description[RW]

Description of the calendar. Optional. Corresponds to the JSON property `description` @return [String]

etag[RW]

ETag of the resource. Corresponds to the JSON property `etag` @return [String]

id[RW]

Identifier of the calendar. To retrieve IDs call the calendarList.list() method. Corresponds to the JSON property `id` @return [String]

kind[RW]

Type of the resource (“calendar#calendar”). Corresponds to the JSON property `kind` @return [String]

location[RW]

Geographic location of the calendar as free-form text. Optional. Corresponds to the JSON property `location` @return [String]

summary[RW]

Title of the calendar. Corresponds to the JSON property `summary` @return [String]

time_zone[RW]

The time zone of the calendar. (Formatted as an IANA Time Zone Database name, e.g. “Europe/Zurich”.) Optional. Corresponds to the JSON property `timeZone` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/calendar_v3/classes.rb, line 195
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/calendar_v3/classes.rb, line 200
def update!(**args)
  @description = args[:description] if args.key?(:description)
  @etag = args[:etag] if args.key?(:etag)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @location = args[:location] if args.key?(:location)
  @summary = args[:summary] if args.key?(:summary)
  @time_zone = args[:time_zone] if args.key?(:time_zone)
end