Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductDetail
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductDetail
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/representations.rb
Overview
Detailed product information associated with a user event.
Instance Attribute Summary collapse
-
#product ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProduct
Product captures all metadata information of items to be recommended or searched.
-
#quantity ⇒ Fixnum
Quantity of the product associated with the user event.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaProductDetail
constructor
A new instance of GoogleCloudRetailV2alphaProductDetail.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaProductDetail
Returns a new instance of GoogleCloudRetailV2alphaProductDetail.
5311 5312 5313 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5311 def initialize(**args) update!(**args) end |
Instance Attribute Details
#product ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProduct
Product captures all metadata information of items to be recommended or
searched.
Corresponds to the JSON property product
5301 5302 5303 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5301 def product @product end |
#quantity ⇒ Fixnum
Quantity of the product associated with the user event. For example, this
field will be 2 if two products are added to the shopping cart for purchase-
complete
event. Required for add-to-cart
and purchase-complete
event
types.
Corresponds to the JSON property quantity
5309 5310 5311 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5309 def quantity @quantity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5316 5317 5318 5319 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5316 def update!(**args) @product = args[:product] if args.key?(:product) @quantity = args[:quantity] if args.key?(:quantity) end |