Class: Google::Apis::PeopleV1::SearchResponse

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

The response to a search request for the authenticated user, given a query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SearchResponse

Returns a new instance of SearchResponse.



2522
2523
2524
# File 'lib/google/apis/people_v1/classes.rb', line 2522

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

Instance Attribute Details

#resultsArray<Google::Apis::PeopleV1::SearchResult>

The results of the request. Corresponds to the JSON property results



2520
2521
2522
# File 'lib/google/apis/people_v1/classes.rb', line 2520

def results
  @results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2527
2528
2529
# File 'lib/google/apis/people_v1/classes.rb', line 2527

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