Class: Google::Apis::MerchantapiProductsV1beta::UnitPricingBaseMeasure
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiProductsV1beta::UnitPricingBaseMeasure
- 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 UnitPricingBaseMeasure of the product.
Instance Attribute Summary collapse
-
#unit ⇒ String
The unit of the denominator.
-
#value ⇒ Fixnum
The denominator of the unit price.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UnitPricingBaseMeasure
constructor
A new instance of UnitPricingBaseMeasure.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UnitPricingBaseMeasure
Returns a new instance of UnitPricingBaseMeasure.
1879 1880 1881 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1879 def initialize(**args) update!(**args) end |
Instance Attribute Details
#unit ⇒ String
The unit of the denominator.
Corresponds to the JSON property unit
1872 1873 1874 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1872 def unit @unit end |
#value ⇒ Fixnum
The denominator of the unit price.
Corresponds to the JSON property value
1877 1878 1879 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1877 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1884 1885 1886 1887 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1884 def update!(**args) @unit = args[:unit] if args.key?(:unit) @value = args[:value] if args.key?(:value) end |