Class: Google::Apis::ContentV2_1::CustomAttribute
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::CustomAttribute
- Defined in:
- generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb
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.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ CustomAttribute
Returns a new instance of CustomAttribute
1496 1497 1498 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 1496 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
1483 1484 1485 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 1483 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
1489 1490 1491 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 1489 def name @name end |
#value ⇒ String
The value of the attribute.
Corresponds to the JSON property value
1494 1495 1496 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 1494 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1501 1502 1503 1504 1505 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 1501 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 |