Class: Google::Apis::ContentV2_1::CollectionFeaturedProduct

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CollectionFeaturedProduct

Returns a new instance of CollectionFeaturedProduct.



3174
3175
3176
# File 'lib/google/apis/content_v2_1/classes.rb', line 3174

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#offer_idString

The unique identifier for the product item. Corresponds to the JSON property offerId

Returns:

  • (String)


3162
3163
3164
# File 'lib/google/apis/content_v2_1/classes.rb', line 3162

def offer_id
  @offer_id
end

#xFloat

Required. X-coordinate of the product callout on the Shoppable Image. Corresponds to the JSON property x

Returns:

  • (Float)


3167
3168
3169
# File 'lib/google/apis/content_v2_1/classes.rb', line 3167

def x
  @x
end

#yFloat

Required. Y-coordinate of the product callout on the Shoppable Image. Corresponds to the JSON property y

Returns:

  • (Float)


3172
3173
3174
# File 'lib/google/apis/content_v2_1/classes.rb', line 3172

def y
  @y
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3179
3180
3181
3182
3183
# File 'lib/google/apis/content_v2_1/classes.rb', line 3179

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