Class: Google::Apis::MerchantapiReviewsV1beta::ListProductReviewsResponse

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

Overview

response message for the ListProductReviews method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListProductReviewsResponse

Returns a new instance of ListProductReviewsResponse.



115
116
117
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 115

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)


108
109
110
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 108

def next_page_token
  @next_page_token
end

#product_reviewsArray<Google::Apis::MerchantapiReviewsV1beta::ProductReview>

The product review. Corresponds to the JSON property productReviews



113
114
115
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 113

def product_reviews
  @product_reviews
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



120
121
122
123
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 120

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