Class: Google::Apis::PeopleV1::Event
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::Event
- 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
An event related to the person.
Instance Attribute Summary collapse
-
#date ⇒ Google::Apis::PeopleV1::Date
Represents a whole or partial calendar date, such as a birthday.
-
#formatted_type ⇒ String
Output only.
-
#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.
Constructor Details
#initialize(**args) ⇒ Event
Returns a new instance of Event.
957 958 959 |
# File 'lib/google/apis/people_v1/classes.rb', line 957 def initialize(**args) update!(**args) end |
Instance Attribute Details
#date ⇒ Google::Apis::PeopleV1::Date
Represents a whole or partial calendar date, such as a birthday. The time of
day and time zone are either specified elsewhere or are insignificant. The
date is relative to the Gregorian Calendar. This can represent one of the
following: * A full date, with non-zero year, month, and day values. * A month
and day, with a zero year (for example, an anniversary). * A year on its own,
with a zero month and a zero day. * A year and month, with a zero day (for
example, a credit card expiration date). Related types: * google.type.
TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
Corresponds to the JSON property date
938 939 940 |
# File 'lib/google/apis/people_v1/classes.rb', line 938 def date @date end |
#formatted_type ⇒ String
Output only. The 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
944 945 946 |
# File 'lib/google/apis/people_v1/classes.rb', line 944 def formatted_type @formatted_type end |
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
949 950 951 |
# File 'lib/google/apis/people_v1/classes.rb', line 949 def @metadata end |
#type ⇒ String
The type of the event. The type can be custom or one of these predefined
values: * anniversary
* other
Corresponds to the JSON property type
955 956 957 |
# File 'lib/google/apis/people_v1/classes.rb', line 955 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
962 963 964 965 966 967 |
# File 'lib/google/apis/people_v1/classes.rb', line 962 def update!(**args) @date = args[:date] if args.key?(:date) @formatted_type = args[:formatted_type] if args.key?(:formatted_type) @metadata = args[:metadata] if args.key?(:metadata) @type = args[:type] if args.key?(:type) end |