Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPriceInfoPriceRange

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaPriceInfoPriceRange

Returns a new instance of GoogleCloudRetailV2betaPriceInfoPriceRange.



5346
5347
5348
# File 'lib/google/apis/retail_v2beta/classes.rb', line 5346

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

Instance Attribute Details

#original_priceGoogle::Apis::RetailV2beta::GoogleCloudRetailV2betaInterval

A floating point interval. Corresponds to the JSON property originalPrice



5339
5340
5341
# File 'lib/google/apis/retail_v2beta/classes.rb', line 5339

def original_price
  @original_price
end

#priceGoogle::Apis::RetailV2beta::GoogleCloudRetailV2betaInterval

A floating point interval. Corresponds to the JSON property price



5344
5345
5346
# File 'lib/google/apis/retail_v2beta/classes.rb', line 5344

def price
  @price
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5351
5352
5353
5354
# File 'lib/google/apis/retail_v2beta/classes.rb', line 5351

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