Class: Google::Apis::MerchantapiProductsV1beta::UnitPricingMeasure
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiProductsV1beta::UnitPricingMeasure
- 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 UnitPricingMeasure of the product.
Instance Attribute Summary collapse
-
#unit ⇒ String
The unit of the measure.
-
#value ⇒ Float
The measure of an item.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UnitPricingMeasure
constructor
A new instance of UnitPricingMeasure.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UnitPricingMeasure
Returns a new instance of UnitPricingMeasure.
1961 1962 1963 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1961 def initialize(**args) update!(**args) end |
Instance Attribute Details
#unit ⇒ String
The unit of the measure.
Corresponds to the JSON property unit
1954 1955 1956 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1954 def unit @unit end |
#value ⇒ Float
The measure of an item.
Corresponds to the JSON property value
1959 1960 1961 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1959 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1966 1967 1968 1969 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 1966 def update!(**args) @unit = args[:unit] if args.key?(:unit) @value = args[:value] if args.key?(:value) end |