Class: Google::Apis::PeopleV1::Event
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::Event
- 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
An event related to the person.
Instance Attribute Summary collapse
-
#date ⇒ Google::Apis::PeopleV1::Date
Represents a whole calendar date, for example a date of birth.
-
#formatted_type ⇒ String
The read-only type of the event translated and formatted in the viewer's account locale or the
Accept-LanguageHTTP header locale. -
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
-
#type ⇒ String
The type of the event.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Event
constructor
A new instance of Event.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Event
Returns a new instance of Event
749 750 751 |
# File 'generated/google/apis/people_v1/classes.rb', line 749 def initialize(**args) update!(**args) end |
Instance Attribute Details
#date ⇒ Google::Apis::PeopleV1::Date
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.
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
728 729 730 |
# File 'generated/google/apis/people_v1/classes.rb', line 728 def date @date end |
#formatted_type ⇒ String
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
734 735 736 |
# File 'generated/google/apis/people_v1/classes.rb', line 734 def formatted_type @formatted_type end |
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
747 748 749 |
# File 'generated/google/apis/people_v1/classes.rb', line 747 def @metadata end |
#type ⇒ String
The type of the event. The type can be custom or predefined. Possible values include, but are not limited to, the following:
anniversaryotherCorresponds to the JSON propertytype
742 743 744 |
# File 'generated/google/apis/people_v1/classes.rb', line 742 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
754 755 756 757 758 759 |
# File 'generated/google/apis/people_v1/classes.rb', line 754 def update!(**args) @date = args[:date] if args.key?(:date) @formatted_type = args[:formatted_type] if args.key?(:formatted_type) @type = args[:type] if args.key?(:type) @metadata = args[:metadata] if args.key?(:metadata) end |