class Google::Apis::PeopleV1::Relation
A person's relation to another person.
Attributes
Output only. The type of the relation translated and formatted in the viewer's account locale or the locale specified in the Accept-Language HTTP header. Corresponds to the JSON property `formattedType` @return [String]
Metadata about a field. Corresponds to the JSON property `metadata` @return [Google::Apis::PeopleV1::FieldMetadata]
The name of the other person this relation refers to. Corresponds to the JSON property `person` @return [String]
The person's relation to the other person. The type can be custom or one of these predefined values: * `spouse` * `child` * `mother` * `father` * `parent`
-
`brother` * `sister` * `friend` * `relative` * `domesticPartner` * `manager`
-
`assistant` * `referredBy` * `partner`
Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File lib/google/apis/people_v1/classes.rb, line 2399 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/people_v1/classes.rb, line 2404 def update!(**args) @formatted_type = args[:formatted_type] if args.key?(:formatted_type) @metadata = args[:metadata] if args.key?(:metadata) @person = args[:person] if args.key?(:person) @type = args[:type] if args.key?(:type) end