Class: Google::Apis::MerchantapiReviewsV1beta::ProductReview
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiReviewsV1beta::ProductReview
- 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
A review for a product. For more information, see Introduction to Product Review Feeds
Instance Attribute Summary collapse
-
#attributes ⇒ Google::Apis::MerchantapiReviewsV1beta::ProductReviewAttributes
Attributes.
-
#custom_attributes ⇒ Array<Google::Apis::MerchantapiReviewsV1beta::CustomAttribute>
Optional.
-
#data_source ⇒ String
Output only.
-
#name ⇒ String
Identifier.
-
#product_review_id ⇒ String
Required.
-
#product_review_status ⇒ Google::Apis::MerchantapiReviewsV1beta::ProductReviewStatus
Product review status.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProductReview
constructor
A new instance of ProductReview.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ProductReview
Returns a new instance of ProductReview.
504 505 506 |
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 504 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attributes ⇒ Google::Apis::MerchantapiReviewsV1beta::ProductReviewAttributes
Attributes.
Corresponds to the JSON property attributes
475 476 477 |
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 475 def attributes @attributes end |
#custom_attributes ⇒ Array<Google::Apis::MerchantapiReviewsV1beta::CustomAttribute>
Optional. A list of custom (merchant-provided) attributes.
Corresponds to the JSON property customAttributes
480 481 482 |
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 480 def custom_attributes @custom_attributes end |
#data_source ⇒ String
Output only. The primary data source of the product review.
Corresponds to the JSON property dataSource
485 486 487 |
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 485 def data_source @data_source end |
#name ⇒ String
Identifier. The name of the product review. Format: "
productreview.name=
accounts/account
/productReviews/productReview
"
Corresponds to the JSON property name
491 492 493 |
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 491 def name @name end |
#product_review_id ⇒ String
Required. The permanent, unique identifier for the product review in the
publisher’s system.
Corresponds to the JSON property productReviewId
497 498 499 |
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 497 def product_review_id @product_review_id end |
#product_review_status ⇒ Google::Apis::MerchantapiReviewsV1beta::ProductReviewStatus
Product review status.
Corresponds to the JSON property productReviewStatus
502 503 504 |
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 502 def product_review_status @product_review_status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
509 510 511 512 513 514 515 516 |
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 509 def update!(**args) @attributes = args[:attributes] if args.key?(:attributes) @custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes) @data_source = args[:data_source] if args.key?(:data_source) @name = args[:name] if args.key?(:name) @product_review_id = args[:product_review_id] if args.key?(:product_review_id) @product_review_status = args[:product_review_status] if args.key?(:product_review_status) end |