Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPriceInfoPriceRange
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPriceInfoPriceRange
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/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::RetailV2alpha::GoogleCloudRetailV2alphaInterval
A floating point interval.
-
#price ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaInterval
A floating point interval.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaPriceInfoPriceRange
constructor
A new instance of GoogleCloudRetailV2alphaPriceInfoPriceRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaPriceInfoPriceRange
Returns a new instance of GoogleCloudRetailV2alphaPriceInfoPriceRange.
2520 2521 2522 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2520 def initialize(**args) update!(**args) end |
Instance Attribute Details
#original_price ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaInterval
A floating point interval.
Corresponds to the JSON property originalPrice
2513 2514 2515 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2513 def original_price @original_price end |
#price ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaInterval
A floating point interval.
Corresponds to the JSON property price
2518 2519 2520 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2518 def price @price end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2525 2526 2527 2528 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2525 def update!(**args) @original_price = args[:original_price] if args.key?(:original_price) @price = args[:price] if args.key?(:price) end |