Class: Google::Apis::MerchantapiProductsV1beta::ListProductsResponse

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

Overview

Response message for the ListProducts method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListProductsResponse

Returns a new instance of ListProductsResponse.



1016
1017
1018
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1016

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

Instance Attribute Details

#next_page_tokenString

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

Returns:

  • (String)


1008
1009
1010
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1008

def next_page_token
  @next_page_token
end

#productsArray<Google::Apis::MerchantapiProductsV1beta::Product>

The processed products from the specified account. These are your processed products after applying rules and supplemental data sources. Corresponds to the JSON property products



1014
1015
1016
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1014

def products
  @products
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1021
1022
1023
1024
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1021

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