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

Inherits:
Object
  • Object
show all
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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomAttribute

Returns a new instance of CustomAttribute.



2183
2184
2185
# File 'lib/google/apis/content_v2_1/classes.rb', line 2183

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



2170
2171
2172
# File 'lib/google/apis/content_v2_1/classes.rb', line 2170

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)


2176
2177
2178
# File 'lib/google/apis/content_v2_1/classes.rb', line 2176

def name
  @name
end

#valueString

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

Returns:

  • (String)


2181
2182
2183
# File 'lib/google/apis/content_v2_1/classes.rb', line 2181

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2188
2189
2190
2191
2192
# File 'lib/google/apis/content_v2_1/classes.rb', line 2188

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