class Google::Apis::ContentV2::CustomAttribute
Attributes
name[RW]
The name of the attribute. Underscores will be replaced by spaces upon insertion. Corresponds to the JSON property `name` @return [String]
type[RW]
The type of the attribute. Acceptable values are: - “`boolean`” - “` datetimerange`” - “`float`” - “`group`” - “`int`” - “`price`” - “`text`” - “` time`” - “`url`” Corresponds to the JSON property `type` @return [String]
unit[RW]
Free-form unit of the attribute. Unit can only be used for values of type int, float, or price. Corresponds to the JSON property `unit` @return [String]
value[RW]
The value of the attribute. Corresponds to the JSON property `value` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/content_v2/classes.rb, line 1668 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/content_v2/classes.rb, line 1673 def update!(**args) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) @unit = args[:unit] if args.key?(:unit) @value = args[:value] if args.key?(:value) end