Class: Google::Apis::PeopleV1::Event

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Event

Returns a new instance of Event.



761
762
763
# File 'generated/google/apis/people_v1/classes.rb', line 761

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

Instance Attribute Details

#dateGoogle::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 value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and google.protobuf.Timestamp. Corresponds to the JSON property date



742
743
744
# File 'generated/google/apis/people_v1/classes.rb', line 742

def date
  @date
end

#formatted_typeString

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

Returns:

  • (String)


748
749
750
# File 'generated/google/apis/people_v1/classes.rb', line 748

def formatted_type
  @formatted_type
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



753
754
755
# File 'generated/google/apis/people_v1/classes.rb', line 753

def 
  @metadata
end

#typeString

The type of the event. The type can be custom or one of these predefined values: * anniversary * other Corresponds to the JSON property type

Returns:

  • (String)


759
760
761
# File 'generated/google/apis/people_v1/classes.rb', line 759

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



766
767
768
769
770
771
# File 'generated/google/apis/people_v1/classes.rb', line 766

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