class Google::Apis::ContentV2_1::ProductWeight
Attributes
unit[RW]
Required. The weight unit. Acceptable values are: - “`g`” - “`kg`” - “`oz`” - “ `lb`” Corresponds to the JSON property `unit` @return [String]
value[RW]
Required. The weight represented as a number. The weight can have a maximum precision of four decimal places. Corresponds to the JSON property `value` @return [Float]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/content_v2_1/classes.rb, line 11149 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_1/classes.rb, line 11154 def update!(**args) @unit = args[:unit] if args.key?(:unit) @value = args[:value] if args.key?(:value) end