Class: Google::Apis::MerchantapiProductsV1beta::ShippingDimension
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiProductsV1beta::ShippingDimension
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_products_v1beta/classes.rb,
lib/google/apis/merchantapi_products_v1beta/representations.rb,
lib/google/apis/merchantapi_products_v1beta/representations.rb
Overview
The ShippingDimension of the product.
Instance Attribute Summary collapse
-
#unit ⇒ String
The unit of value.
-
#value ⇒ Float
The dimension of the product used to calculate the shipping cost of the item.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ShippingDimension
constructor
A new instance of ShippingDimension.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ShippingDimension
Returns a new instance of ShippingDimension.
1743 1744 1745 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1743 def initialize(**args) update!(**args) end |
Instance Attribute Details
#unit ⇒ String
The unit of value.
Corresponds to the JSON property unit
1736 1737 1738 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1736 def unit @unit end |
#value ⇒ Float
The dimension of the product used to calculate the shipping cost of the item.
Corresponds to the JSON property value
1741 1742 1743 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1741 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1748 1749 1750 1751 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1748 def update!(**args) @unit = args[:unit] if args.key?(:unit) @value = args[:value] if args.key?(:value) end |