Class: Google::Apis::ContentV2_1::ProductId

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 Content API ID of the product.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProductId

Returns a new instance of ProductId.



9597
9598
9599
# File 'lib/google/apis/content_v2_1/classes.rb', line 9597

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

Instance Attribute Details

#product_idString

The Content API ID of the product, in the form channel:contentLanguage: targetCountry:offerId. Corresponds to the JSON property productId

Returns:

  • (String)


9595
9596
9597
# File 'lib/google/apis/content_v2_1/classes.rb', line 9595

def product_id
  @product_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9602
9603
9604
# File 'lib/google/apis/content_v2_1/classes.rb', line 9602

def update!(**args)
  @product_id = args[:product_id] if args.key?(:product_id)
end