Class: Google::Apis::ContentV2_1::CustomAttribute

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CustomAttribute

Returns a new instance of CustomAttribute.



1540
1541
1542
# File 'generated/google/apis/content_v2_1/classes.rb', line 1540

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

Instance Attribute Details

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



1527
1528
1529
# File 'generated/google/apis/content_v2_1/classes.rb', line 1527

def group_values
  @group_values
end

#nameString

The name of the attribute. Underscores will be replaced by spaces upon insertion. Corresponds to the JSON property name

Returns:

  • (String)


1533
1534
1535
# File 'generated/google/apis/content_v2_1/classes.rb', line 1533

def name
  @name
end

#valueString

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

Returns:

  • (String)


1538
1539
1540
# File 'generated/google/apis/content_v2_1/classes.rb', line 1538

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1545
1546
1547
1548
1549
# File 'generated/google/apis/content_v2_1/classes.rb', line 1545

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