Class: Google::Apis::CssV1::CustomAttribute

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

A message that represents custom attributes. Exactly one of value or group_values must not be empty.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomAttribute

Returns a new instance of CustomAttribute.



725
726
727
# File 'lib/google/apis/css_v1/classes.rb', line 725

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#group_valuesArray<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



712
713
714
# File 'lib/google/apis/css_v1/classes.rb', line 712

def group_values
  @group_values
end

#nameString

The name of the attribute. Corresponds to the JSON property name

Returns:

  • (String)


717
718
719
# File 'lib/google/apis/css_v1/classes.rb', line 717

def name
  @name
end

#valueString

The value of the attribute. If value is not empty, group_values must be empty. Corresponds to the JSON property value

Returns:

  • (String)


723
724
725
# File 'lib/google/apis/css_v1/classes.rb', line 723

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



730
731
732
733
734
# File 'lib/google/apis/css_v1/classes.rb', line 730

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