class Google::Apis::ContentV2::ProductCustomAttribute

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. 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 or FLOAT. 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 generated/google/apis/content_v2/classes.rb, line 5059
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/content_v2/classes.rb, line 5064
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