Class: Google::Apis::RetailV2::GoogleCloudRetailV2PriceInfoPriceRange

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2PriceInfoPriceRange

Returns a new instance of GoogleCloudRetailV2PriceInfoPriceRange.



2962
2963
2964
# File 'lib/google/apis/retail_v2/classes.rb', line 2962

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

Instance Attribute Details

#original_priceGoogle::Apis::RetailV2::GoogleCloudRetailV2Interval

A floating point interval. Corresponds to the JSON property originalPrice



2955
2956
2957
# File 'lib/google/apis/retail_v2/classes.rb', line 2955

def original_price
  @original_price
end

#priceGoogle::Apis::RetailV2::GoogleCloudRetailV2Interval

A floating point interval. Corresponds to the JSON property price



2960
2961
2962
# File 'lib/google/apis/retail_v2/classes.rb', line 2960

def price
  @price
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2967
2968
2969
2970
# File 'lib/google/apis/retail_v2/classes.rb', line 2967

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