Class: Google::Apis::ContentV2_1::CustomAttribute
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::CustomAttribute
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
A message that represents custom attributes. Exactly one of value or
groupValues must be provided. Maximum allowed number of characters for each
custom attribute is 10240 (represents sum of characters for name and value).
Maximum 2500 custom attributes can be set per merchant, with total size of 102.
4kB.
Instance Attribute Summary collapse
-
#group_values ⇒ Array<Google::Apis::ContentV2_1::CustomAttribute>
Subattributes within this attribute group.
-
#name ⇒ String
The name of the attribute.
-
#value ⇒ String
The value of the attribute.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomAttribute
constructor
A new instance of CustomAttribute.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomAttribute
Returns a new instance of CustomAttribute.
3614 3615 3616 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3614 def initialize(**args) update!(**args) end |
Instance Attribute Details
#group_values ⇒ Array<Google::Apis::ContentV2_1::CustomAttribute>
Subattributes within this attribute group. Exactly one of value or groupValues
must be provided.
Corresponds to the JSON property groupValues
3601 3602 3603 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3601 def group_values @group_values end |
#name ⇒ String
The name of the attribute. Underscores will be replaced by spaces upon
insertion.
Corresponds to the JSON property name
3607 3608 3609 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3607 def name @name end |
#value ⇒ String
The value of the attribute.
Corresponds to the JSON property value
3612 3613 3614 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3612 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3619 3620 3621 3622 3623 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3619 def update!(**args) @group_values = args[:group_values] if args.key?(:group_values) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end |