class Google::Apis::ManufacturersV1::Capacity

The capacity of a product. For more information, see support.google. com/manufacturers/answer/6124116#capacity.

Attributes

unit[RW]

The unit of the capacity, i.e., MB, GB, or TB. Corresponds to the JSON property `unit` @return [String]

value[RW]

The numeric value of the capacity. 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 308
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 313
def update!(**args)
  @unit = args[:unit] if args.key?(:unit)
  @value = args[:value] if args.key?(:value)
end