class Google::Apis::PeopleV1::Event

An event related to the person.

Attributes

date[RW]

Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](en.wikipedia.org/ wiki/Proleptic_Gregorian_calendar). The day may be 0 to represent a year and month where the day is not significant. The year may be 0 to represent a month and day independent of year; for example, anniversary date. Corresponds to the JSON property `date` @return [Google::Apis::PeopleV1::Date]

formatted_type[RW]

The read-only type of the event translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale. Corresponds to the JSON property `formattedType` @return [String]

metadata[RW]

Metadata about a field. Corresponds to the JSON property `metadata` @return [Google::Apis::PeopleV1::FieldMetadata]

type[RW]

The type of the event. The type can be custom or predefined. Possible values include, but are not limited to, the following: * `anniversary` * `other` Corresponds to the JSON property `type` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/people_v1/classes.rb, line 671
def update!(**args)
  @metadata = args[:metadata] if args.key?(:metadata)
  @date = args[:date] if args.key?(:date)
  @type = args[:type] if args.key?(:type)
  @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
end