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

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

The kind of relationship the person is looking for.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RelationshipInterest

Returns a new instance of RelationshipInterest.


1312
1313
1314
# File 'generated/google/apis/people_v1/classes.rb', line 1312

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

Instance Attribute Details

#formatted_valueString

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)

1310
1311
1312
# File 'generated/google/apis/people_v1/classes.rb', line 1310

def formatted_value
  @formatted_value
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata


1297
1298
1299
# File 'generated/google/apis/people_v1/classes.rb', line 1297

def 
  @metadata
end

#valueString

The kind of relationship the person is looking for. The value can be custom or predefined. Possible values include, but are not limited to, the following values: * friend * date * relationship * networking Corresponds to the JSON property value

Returns:

  • (String)

1304
1305
1306
# File 'generated/google/apis/people_v1/classes.rb', line 1304

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1317
1318
1319
1320
1321
# File 'generated/google/apis/people_v1/classes.rb', line 1317

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