Class: Google::Apis::MerchantapiProductsV1beta::ProductDetail
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiProductsV1beta::ProductDetail
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_products_v1beta/classes.rb,
lib/google/apis/merchantapi_products_v1beta/representations.rb,
lib/google/apis/merchantapi_products_v1beta/representations.rb
Overview
The product details.
Instance Attribute Summary collapse
-
#attribute_name ⇒ String
The name of the product detail.
-
#attribute_value ⇒ String
The value of the product detail.
-
#section_name ⇒ String
The section header used to group a set of product details.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProductDetail
constructor
A new instance of ProductDetail.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ProductDetail
Returns a new instance of ProductDetail.
1301 1302 1303 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1301 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attribute_name ⇒ String
The name of the product detail.
Corresponds to the JSON property attributeName
1289 1290 1291 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1289 def attribute_name @attribute_name end |
#attribute_value ⇒ String
The value of the product detail.
Corresponds to the JSON property attributeValue
1294 1295 1296 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1294 def attribute_value @attribute_value end |
#section_name ⇒ String
The section header used to group a set of product details.
Corresponds to the JSON property sectionName
1299 1300 1301 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1299 def section_name @section_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1306 1307 1308 1309 1310 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1306 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 |