Class: Google::Apis::MerchantapiReviewsV1beta::ProductReview

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

A review for a product. For more information, see Introduction to Product Review Feeds

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesGoogle::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_attributesArray<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_sourceString

Output only. The primary data source of the product review. Corresponds to the JSON property dataSource

Returns:

  • (String)


485
486
487
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 485

def data_source
  @data_source
end

#nameString

Identifier. The name of the product review. Format: "productreview.name= accounts/account/productReviews/productReview" Corresponds to the JSON property name

Returns:

  • (String)


491
492
493
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 491

def name
  @name
end

#product_review_idString

Required. The permanent, unique identifier for the product review in the publisher’s system. Corresponds to the JSON property productReviewId

Returns:

  • (String)


497
498
499
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 497

def product_review_id
  @product_review_id
end

#product_review_statusGoogle::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