Class: Google::Apis::ContentV2_1::CollectionFeaturedProduct
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::CollectionFeaturedProduct
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
The message for FeaturedProduct. FeaturedProduct
Instance Attribute Summary collapse
-
#offer_id ⇒ String
The unique identifier for the product item.
-
#x ⇒ Float
Required.
-
#y ⇒ Float
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CollectionFeaturedProduct
constructor
A new instance of CollectionFeaturedProduct.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CollectionFeaturedProduct
Returns a new instance of CollectionFeaturedProduct.
3126 3127 3128 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3126 def initialize(**args) update!(**args) end |
Instance Attribute Details
#offer_id ⇒ String
The unique identifier for the product item.
Corresponds to the JSON property offerId
3114 3115 3116 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3114 def offer_id @offer_id end |
#x ⇒ Float
Required. X-coordinate of the product callout on the Shoppable Image.
Corresponds to the JSON property x
3119 3120 3121 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3119 def x @x end |
#y ⇒ Float
Required. Y-coordinate of the product callout on the Shoppable Image.
Corresponds to the JSON property y
3124 3125 3126 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3124 def y @y end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3131 3132 3133 3134 3135 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3131 def update!(**args) @offer_id = args[:offer_id] if args.key?(:offer_id) @x = args[:x] if args.key?(:x) @y = args[:y] if args.key?(:y) end |