Class: Google::Apis::ContentV2::ProductUnitPricingMeasure
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::ProductUnitPricingMeasure
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb
Instance Attribute Summary collapse
-
#unit ⇒ String
The unit of the measure.
-
#value ⇒ Float
The measure of an item.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProductUnitPricingMeasure
constructor
A new instance of ProductUnitPricingMeasure.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ProductUnitPricingMeasure
Returns a new instance of ProductUnitPricingMeasure.
9869 9870 9871 |
# File 'generated/google/apis/content_v2/classes.rb', line 9869 def initialize(**args) update!(**args) end |
Instance Attribute Details
#unit ⇒ String
The unit of the measure.
Corresponds to the JSON property unit
9862 9863 9864 |
# File 'generated/google/apis/content_v2/classes.rb', line 9862 def unit @unit end |
#value ⇒ Float
The measure of an item.
Corresponds to the JSON property value
9867 9868 9869 |
# File 'generated/google/apis/content_v2/classes.rb', line 9867 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9874 9875 9876 9877 |
# File 'generated/google/apis/content_v2/classes.rb', line 9874 def update!(**args) @unit = args[:unit] if args.key?(:unit) @value = args[:value] if args.key?(:value) end |