Class: Google::Apis::CustomsearchV1::Search::Queries

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

Overview

Query metadata for the previous, current, and next pages of results.

Defined Under Namespace

Classes: NextPage, PreviousPage, Request

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Queries

Returns a new instance of Queries.



424
425
426
# File 'generated/google/apis/customsearch_v1/classes.rb', line 424

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

Instance Attribute Details

#next_pageArray<Google::Apis::CustomsearchV1::Search::Queries::NextPage>

Metadata representing the next page of results, if applicable. Corresponds to the JSON property nextPage



412
413
414
# File 'generated/google/apis/customsearch_v1/classes.rb', line 412

def next_page
  @next_page
end

#previous_pageArray<Google::Apis::CustomsearchV1::Search::Queries::PreviousPage>

Metadata representing the previous page of results, if applicable. Corresponds to the JSON property previousPage



417
418
419
# File 'generated/google/apis/customsearch_v1/classes.rb', line 417

def previous_page
  @previous_page
end

#requestArray<Google::Apis::CustomsearchV1::Search::Queries::Request>

Metadata representing the current request. Corresponds to the JSON property request



422
423
424
# File 'generated/google/apis/customsearch_v1/classes.rb', line 422

def request
  @request
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



429
430
431
432
433
# File 'generated/google/apis/customsearch_v1/classes.rb', line 429

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