Class: Google::Apis::CalendarV3::Calendar
- Inherits:
-
Object
- Object
- Google::Apis::CalendarV3::Calendar
- 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
-
#description ⇒ String
Description of the calendar.
-
#etag ⇒ String
ETag of the resource.
-
#id ⇒ String
Identifier of the calendar.
-
#kind ⇒ String
Type of the resource ("calendar#calendar").
-
#location ⇒ String
Geographic location of the calendar as free-form text.
-
#summary ⇒ String
Title of the calendar.
-
#time_zone ⇒ String
The time zone of the calendar.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Calendar
constructor
A new instance of Calendar.
-
#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) ⇒ Calendar
Returns a new instance of Calendar.
195 196 197 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 195 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Description of the calendar. Optional.
Corresponds to the JSON property description
161 162 163 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 161 def description @description end |
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
166 167 168 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 166 def etag @etag end |
#id ⇒ String
Identifier of the calendar. To retrieve IDs call the calendarList.list()
method.
Corresponds to the JSON property id
172 173 174 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 172 def id @id end |
#kind ⇒ String
Type of the resource ("calendar#calendar").
Corresponds to the JSON property kind
177 178 179 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 177 def kind @kind end |
#location ⇒ String
Geographic location of the calendar as free-form text. Optional.
Corresponds to the JSON property location
182 183 184 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 182 def location @location end |
#summary ⇒ String
Title of the calendar.
Corresponds to the JSON property summary
187 188 189 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 187 def summary @summary end |
#time_zone ⇒ String
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
193 194 195 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 193 def time_zone @time_zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
200 201 202 203 204 205 206 207 208 |
# 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 |