Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPriceInfoPriceRange

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaPriceInfoPriceRange

Returns a new instance of GoogleCloudRetailV2alphaPriceInfoPriceRange.



3726
3727
3728
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3726

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#original_priceGoogle::Apis::RetailV2alpha::GoogleCloudRetailV2alphaInterval

A floating point interval. Corresponds to the JSON property originalPrice



3719
3720
3721
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3719

def original_price
  @original_price
end

#priceGoogle::Apis::RetailV2alpha::GoogleCloudRetailV2alphaInterval

A floating point interval. Corresponds to the JSON property price



3724
3725
3726
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3724

def price
  @price
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3731
3732
3733
3734
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3731

def update!(**args)
  @original_price = args[:original_price] if args.key?(:original_price)
  @price = args[:price] if args.key?(:price)
end