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.



9591
9592
9593
# File 'lib/google/apis/content_v2_1/classes.rb', line 9591

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)


9589
9590
9591
# File 'lib/google/apis/content_v2_1/classes.rb', line 9589

def product_id
  @product_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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