Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPriceInfoPriceRange
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPriceInfoPriceRange
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2beta/classes.rb,
lib/google/apis/retail_v2beta/representations.rb,
lib/google/apis/retail_v2beta/representations.rb
Overview
The price range of all variant Product having the same Product. primary_product_id.
Instance Attribute Summary collapse
-
#original_price ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaInterval
A floating point interval.
-
#price ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaInterval
A floating point interval.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2betaPriceInfoPriceRange
constructor
A new instance of GoogleCloudRetailV2betaPriceInfoPriceRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2betaPriceInfoPriceRange
Returns a new instance of GoogleCloudRetailV2betaPriceInfoPriceRange.
5466 5467 5468 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 5466 def initialize(**args) update!(**args) end |
Instance Attribute Details
#original_price ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaInterval
A floating point interval.
Corresponds to the JSON property originalPrice
5459 5460 5461 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 5459 def original_price @original_price end |
#price ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaInterval
A floating point interval.
Corresponds to the JSON property price
5464 5465 5466 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 5464 def price @price end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5471 5472 5473 5474 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 5471 def update!(**args) @original_price = args[:original_price] if args.key?(:original_price) @price = args[:price] if args.key?(:price) end |