Class: Google::Apis::PeopleV1::CalendarUrl

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/people_v1/classes.rb,
lib/google/apis/people_v1/representations.rb,
lib/google/apis/people_v1/representations.rb

Overview

A person's calendar URL.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CalendarUrl

Returns a new instance of CalendarUrl.



434
435
436
# File 'lib/google/apis/people_v1/classes.rb', line 434

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

Instance Attribute Details

#formatted_typeString

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

Returns:

  • (String)


416
417
418
# File 'lib/google/apis/people_v1/classes.rb', line 416

def formatted_type
  @formatted_type
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



421
422
423
# File 'lib/google/apis/people_v1/classes.rb', line 421

def 
  @metadata
end

#typeString

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

Returns:

  • (String)


427
428
429
# File 'lib/google/apis/people_v1/classes.rb', line 427

def type
  @type
end

#urlString

The calendar URL. Corresponds to the JSON property url

Returns:

  • (String)


432
433
434
# File 'lib/google/apis/people_v1/classes.rb', line 432

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



439
440
441
442
443
444
# File 'lib/google/apis/people_v1/classes.rb', line 439

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