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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/manufacturers_v1/classes.rb,
generated/google/apis/manufacturers_v1/representations.rb,
generated/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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ProductDetail

Returns a new instance of ProductDetail



217
218
219
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 217

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

Instance Attribute Details

#attribute_nameString

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

Returns:

  • (String)


215
216
217
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 215

def attribute_name
  @attribute_name
end

#attribute_valueString

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

Returns:

  • (String)


205
206
207
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 205

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)


210
211
212
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 210

def section_name
  @section_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



222
223
224
225
226
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 222

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