Class: Google::Apis::ManufacturersV1::ProductDetail

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/manufacturers_v1/classes.rb,
lib/google/apis/manufacturers_v1/representations.rb,
lib/google/apis/manufacturers_v1/representations.rb

Overview

A product detail of the product. For more information, see https://support. google.com/manufacturers/answer/6124116#productdetail.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProductDetail

Returns a new instance of ProductDetail.



1035
1036
1037
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1035

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

Instance Attribute Details

#attribute_nameString

The name of the attribute. Corresponds to the JSON property attributeName

Returns:

  • (String)


1023
1024
1025
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1023

def attribute_name
  @attribute_name
end

#attribute_valueString

The value of the attribute. Corresponds to the JSON property attributeValue

Returns:

  • (String)


1028
1029
1030
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1028

def attribute_value
  @attribute_value
end

#section_nameString

A short section name that can be reused between multiple product details. Corresponds to the JSON property sectionName

Returns:

  • (String)


1033
1034
1035
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1033

def section_name
  @section_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1040
1041
1042
1043
1044
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1040

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