Class: Google::Apis::CssV1::CustomAttribute
- Inherits:
-
Object
- Object
- Google::Apis::CssV1::CustomAttribute
- 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
A message that represents custom attributes. Exactly one of value or
group_values must not be empty.
Instance Attribute Summary collapse
-
#group_values ⇒ Array<Google::Apis::CssV1::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.
763 764 765 |
# File 'lib/google/apis/css_v1/classes.rb', line 763 def initialize(**args) update!(**args) end |
Instance Attribute Details
#group_values ⇒ Array<Google::Apis::CssV1::CustomAttribute>
Subattributes within this attribute group. If group_values is not empty,
value must be empty.
Corresponds to the JSON property groupValues
750 751 752 |
# File 'lib/google/apis/css_v1/classes.rb', line 750 def group_values @group_values end |
#name ⇒ String
The name of the attribute.
Corresponds to the JSON property name
755 756 757 |
# File 'lib/google/apis/css_v1/classes.rb', line 755 def name @name end |
#value ⇒ String
The value of the attribute. If value is not empty, group_values must be
empty.
Corresponds to the JSON property value
761 762 763 |
# File 'lib/google/apis/css_v1/classes.rb', line 761 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
768 769 770 771 772 |
# File 'lib/google/apis/css_v1/classes.rb', line 768 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 |