Class: Google::Apis::PeopleV1::Relation
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::Relation
- 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
A person's relation to another person.
Instance Attribute Summary collapse
-
#formatted_type ⇒ String
Output only.
-
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
-
#person ⇒ String
The name of the other person this relation refers to.
-
#type ⇒ String
The person's relation to the other person.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Relation
constructor
A new instance of Relation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Relation
Returns a new instance of Relation.
2380 2381 2382 |
# File 'lib/google/apis/people_v1/classes.rb', line 2380 def initialize(**args) update!(**args) end |
Instance Attribute Details
#formatted_type ⇒ String
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
2360 2361 2362 |
# File 'lib/google/apis/people_v1/classes.rb', line 2360 def formatted_type @formatted_type end |
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
2365 2366 2367 |
# File 'lib/google/apis/people_v1/classes.rb', line 2365 def @metadata end |
#person ⇒ String
The name of the other person this relation refers to.
Corresponds to the JSON property person
2370 2371 2372 |
# File 'lib/google/apis/people_v1/classes.rb', line 2370 def person @person end |
#type ⇒ 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*managerassistant*referredBy*partnerCorresponds to the JSON propertytype
2378 2379 2380 |
# File 'lib/google/apis/people_v1/classes.rb', line 2378 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2385 2386 2387 2388 2389 2390 |
# File 'lib/google/apis/people_v1/classes.rb', line 2385 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 |