Class: Google::Apis::PeopleV1::CalendarUrl
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::CalendarUrl
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/people_v1/classes.rb,
generated/google/apis/people_v1/representations.rb,
generated/google/apis/people_v1/representations.rb
Overview
A person's calendar URL.
Instance Attribute Summary collapse
-
#formatted_type ⇒ String
Output only.
-
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
-
#type ⇒ String
The type of the calendar URL.
-
#url ⇒ String
The calendar URL.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CalendarUrl
constructor
A new instance of CalendarUrl.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CalendarUrl
Returns a new instance of CalendarUrl.
281 282 283 |
# File 'generated/google/apis/people_v1/classes.rb', line 281 def initialize(**args) update!(**args) end |
Instance Attribute Details
#formatted_type ⇒ String
Output only. The type of the calendar URL translated and formatted in the
viewer's account locale or the Accept-Language
HTTP header locale.
Corresponds to the JSON property formattedType
263 264 265 |
# File 'generated/google/apis/people_v1/classes.rb', line 263 def formatted_type @formatted_type end |
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
268 269 270 |
# File 'generated/google/apis/people_v1/classes.rb', line 268 def @metadata end |
#type ⇒ String
The type of the calendar URL. The type can be custom or one of these
predefined values: * home
* freeBusy
* work
Corresponds to the JSON property type
274 275 276 |
# File 'generated/google/apis/people_v1/classes.rb', line 274 def type @type end |
#url ⇒ String
The calendar URL.
Corresponds to the JSON property url
279 280 281 |
# File 'generated/google/apis/people_v1/classes.rb', line 279 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
286 287 288 289 290 291 |
# File 'generated/google/apis/people_v1/classes.rb', line 286 def update!(**args) @formatted_type = args[:formatted_type] if args.key?(:formatted_type) @metadata = args[:metadata] if args.key?(:metadata) @type = args[:type] if args.key?(:type) @url = args[:url] if args.key?(:url) end |