Class: Google::Apis::CssV1::ProductDetail

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



1048
1049
1050
# File 'lib/google/apis/css_v1/classes.rb', line 1048

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)


1036
1037
1038
# File 'lib/google/apis/css_v1/classes.rb', line 1036

def attribute_name
  @attribute_name
end

#attribute_valueString

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

Returns:

  • (String)


1041
1042
1043
# File 'lib/google/apis/css_v1/classes.rb', line 1041

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)


1046
1047
1048
# File 'lib/google/apis/css_v1/classes.rb', line 1046

def section_name
  @section_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1053
1054
1055
1056
1057
# File 'lib/google/apis/css_v1/classes.rb', line 1053

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