Class: Google::Apis::RetailV2::GoogleCloudRetailV2PriceInfoPriceRange
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2::GoogleCloudRetailV2PriceInfoPriceRange
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2/classes.rb,
lib/google/apis/retail_v2/representations.rb,
lib/google/apis/retail_v2/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::RetailV2::GoogleCloudRetailV2Interval
A floating point interval.
-
#price ⇒ Google::Apis::RetailV2::GoogleCloudRetailV2Interval
A floating point interval.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2PriceInfoPriceRange
constructor
A new instance of GoogleCloudRetailV2PriceInfoPriceRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2PriceInfoPriceRange
Returns a new instance of GoogleCloudRetailV2PriceInfoPriceRange.
3158 3159 3160 |
# File 'lib/google/apis/retail_v2/classes.rb', line 3158 def initialize(**args) update!(**args) end |
Instance Attribute Details
#original_price ⇒ Google::Apis::RetailV2::GoogleCloudRetailV2Interval
A floating point interval.
Corresponds to the JSON property originalPrice
3151 3152 3153 |
# File 'lib/google/apis/retail_v2/classes.rb', line 3151 def original_price @original_price end |
#price ⇒ Google::Apis::RetailV2::GoogleCloudRetailV2Interval
A floating point interval.
Corresponds to the JSON property price
3156 3157 3158 |
# File 'lib/google/apis/retail_v2/classes.rb', line 3156 def price @price end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3163 3164 3165 3166 |
# File 'lib/google/apis/retail_v2/classes.rb', line 3163 def update!(**args) @original_price = args[:original_price] if args.key?(:original_price) @price = args[:price] if args.key?(:price) end |