Class: Google::Apis::PeopleV1::RelationshipInterest

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 interest .

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RelationshipInterest

Returns a new instance of RelationshipInterest.



2436
2437
2438
# File 'lib/google/apis/people_v1/classes.rb', line 2436

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

Instance Attribute Details

#formatted_valueString

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

Returns:

  • (String)


2422
2423
2424
# File 'lib/google/apis/people_v1/classes.rb', line 2422

def formatted_value
  @formatted_value
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



2427
2428
2429
# File 'lib/google/apis/people_v1/classes.rb', line 2427

def 
  @metadata
end

#valueString

The kind of relationship the person is looking for. The value can be custom or one of these predefined values: * friend * date * relationship * networking Corresponds to the JSON property value

Returns:

  • (String)


2434
2435
2436
# File 'lib/google/apis/people_v1/classes.rb', line 2434

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2441
2442
2443
2444
2445
# File 'lib/google/apis/people_v1/classes.rb', line 2441

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