Class: Google::Apis::CloudsearchV1::PeopleSuggestion

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Overview

This field contains information about the person being suggested.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PeopleSuggestion

Returns a new instance of PeopleSuggestion.



15241
15242
15243
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15241

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

Instance Attribute Details

#personGoogle::Apis::CloudsearchV1::Person

Object to represent a person. Corresponds to the JSON property person



15239
15240
15241
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15239

def person
  @person
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15246
15247
15248
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15246

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