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

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Queries

Returns a new instance of Queries.



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

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



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

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



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

def previous_page
  @previous_page
end

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

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



428
429
430
# File 'generated/google/apis/customsearch_v1/classes.rb', line 428

def request
  @request
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



435
436
437
438
439
# File 'generated/google/apis/customsearch_v1/classes.rb', line 435

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