Class: Google::Apis::CustomsearchV1::Search::Queries
- Inherits:
-
Object
- Object
- Google::Apis::CustomsearchV1::Search::Queries
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/customsearch_v1/classes.rb,
lib/google/apis/customsearch_v1/representations.rb,
lib/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
-
#next_page ⇒ Array<Google::Apis::CustomsearchV1::Search::Queries::NextPage>
Metadata representing the next page of results, if applicable.
-
#previous_page ⇒ Array<Google::Apis::CustomsearchV1::Search::Queries::PreviousPage>
Metadata representing the previous page of results, if applicable.
-
#request ⇒ Array<Google::Apis::CustomsearchV1::Search::Queries::Request>
Metadata representing the current request.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Queries
constructor
A new instance of Queries.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Queries
Returns a new instance of Queries.
421 422 423 |
# File 'lib/google/apis/customsearch_v1/classes.rb', line 421 def initialize(**args) update!(**args) end |
Instance Attribute Details
#next_page ⇒ Array<Google::Apis::CustomsearchV1::Search::Queries::NextPage>
Metadata representing the next page of results, if applicable.
Corresponds to the JSON property nextPage
409 410 411 |
# File 'lib/google/apis/customsearch_v1/classes.rb', line 409 def next_page @next_page end |
#previous_page ⇒ Array<Google::Apis::CustomsearchV1::Search::Queries::PreviousPage>
Metadata representing the previous page of results, if applicable.
Corresponds to the JSON property previousPage
414 415 416 |
# File 'lib/google/apis/customsearch_v1/classes.rb', line 414 def previous_page @previous_page end |
#request ⇒ Array<Google::Apis::CustomsearchV1::Search::Queries::Request>
Metadata representing the current request.
Corresponds to the JSON property request
419 420 421 |
# File 'lib/google/apis/customsearch_v1/classes.rb', line 419 def request @request end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
426 427 428 429 430 |
# File 'lib/google/apis/customsearch_v1/classes.rb', line 426 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 |