Class: Google::Apis::MerchantapiProductsV1beta::ProductDetail

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProductDetail

Returns a new instance of ProductDetail.



1442
1443
1444
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1442

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)


1430
1431
1432
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1430

def attribute_name
  @attribute_name
end

#attribute_valueString

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

Returns:

  • (String)


1435
1436
1437
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1435

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)


1440
1441
1442
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1440

def section_name
  @section_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1447
1448
1449
1450
1451
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1447

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