Class: Google::Apis::PeopleV1::SearchResult

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

A result of a search query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SearchResult

Returns a new instance of SearchResult.



2581
2582
2583
# File 'lib/google/apis/people_v1/classes.rb', line 2581

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

Instance Attribute Details

#personGoogle::Apis::PeopleV1::Person

Information about a person merged from various data sources such as the authenticated user's contacts and profile data. Most fields can have multiple items. The items in a field have no guaranteed order, but each non-empty field is guaranteed to have exactly one field with metadata.primary set to true. Corresponds to the JSON property person



2579
2580
2581
# File 'lib/google/apis/people_v1/classes.rb', line 2579

def person
  @person
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2586
2587
2588
# File 'lib/google/apis/people_v1/classes.rb', line 2586

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