Class: Google::Apis::MerchantapiReportsV1beta::SearchResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/merchantapi_reports_v1beta/classes.rb,
lib/google/apis/merchantapi_reports_v1beta/representations.rb,
lib/google/apis/merchantapi_reports_v1beta/representations.rb

Overview

Response message for the ReportService.Search method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SearchResponse

Returns a new instance of SearchResponse.



1818
1819
1820
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1818

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

Instance Attribute Details

#next_page_tokenString

Token which can be sent as page_token to retrieve the next page. If omitted, there are no subsequent pages. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


1811
1812
1813
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1811

def next_page_token
  @next_page_token
end

#resultsArray<Google::Apis::MerchantapiReportsV1beta::ReportRow>

Rows that matched the search query. Corresponds to the JSON property results



1816
1817
1818
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1816

def results
  @results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1823
1824
1825
1826
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1823

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