Class: Google::Apis::ContentV2_1::ProductProductDetail

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProductProductDetail

Returns a new instance of ProductProductDetail.



9669
9670
9671
# File 'generated/google/apis/content_v2_1/classes.rb', line 9669

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

Instance Attribute Details

#attribute_nameString

The name of the product detail. Corresponds to the JSON property attributeName

Returns:

  • (String)


9657
9658
9659
# File 'generated/google/apis/content_v2_1/classes.rb', line 9657

def attribute_name
  @attribute_name
end

#attribute_valueString

The value of the product detail. Corresponds to the JSON property attributeValue

Returns:

  • (String)


9662
9663
9664
# File 'generated/google/apis/content_v2_1/classes.rb', line 9662

def attribute_value
  @attribute_value
end

#section_nameString

The section header used to group a set of product details. Corresponds to the JSON property sectionName

Returns:

  • (String)


9667
9668
9669
# File 'generated/google/apis/content_v2_1/classes.rb', line 9667

def section_name
  @section_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9674
9675
9676
9677
9678
# File 'generated/google/apis/content_v2_1/classes.rb', line 9674

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