class Google::Apis::ManufacturersV1::Count

The number of products in a single package. For more information, see https:// support.google.com/manufacturers/answer/6124116#count.

Attributes

unit[RW]

The unit in which these products are counted. Corresponds to the JSON property `unit` @return [String]

value[RW]

The numeric value of the number of products in a package. Corresponds to the JSON property `value` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/manufacturers_v1/classes.rb, line 334
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/manufacturers_v1/classes.rb, line 339
def update!(**args)
  @unit = args[:unit] if args.key?(:unit)
  @value = args[:value] if args.key?(:value)
end