Class: Google::Apis::PeopleV1::RelationshipStatus

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

DEPRECATED: No data will be returned A person's relationship status.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RelationshipStatus

Returns a new instance of RelationshipStatus.



2471
2472
2473
# File 'lib/google/apis/people_v1/classes.rb', line 2471

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

Instance Attribute Details

#formatted_valueString

Output only. The value of the relationship status translated and formatted in the viewer's account locale or the Accept-Language HTTP header locale. Corresponds to the JSON property formattedValue

Returns:

  • (String)


2456
2457
2458
# File 'lib/google/apis/people_v1/classes.rb', line 2456

def formatted_value
  @formatted_value
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



2461
2462
2463
# File 'lib/google/apis/people_v1/classes.rb', line 2461

def 
  @metadata
end

#valueString

The relationship status. The value can be custom or one of these predefined values: * single * inARelationship * engaged * married * itsComplicated * openRelationship * widowed * inDomesticPartnership * inCivilUnion Corresponds to the JSON property value

Returns:

  • (String)


2469
2470
2471
# File 'lib/google/apis/people_v1/classes.rb', line 2469

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2476
2477
2478
2479
2480
# File 'lib/google/apis/people_v1/classes.rb', line 2476

def update!(**args)
  @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
  @metadata = args[:metadata] if args.key?(:metadata)
  @value = args[:value] if args.key?(:value)
end