Class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/recommendationengine_v1beta1/classes.rb,
generated/google/apis/recommendationengine_v1beta1/representations.rb,
generated/google/apis/recommendationengine_v1beta1/representations.rb

Overview

Product price range when there are a range of prices for different variations of the same product.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange

Returns a new instance of GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange.



1263
1264
1265
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1263

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

Instance Attribute Details

#maxFloat

Required. The maximum product price. Corresponds to the JSON property max

Returns:

  • (Float)


1256
1257
1258
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1256

def max
  @max
end

#minFloat

Required. The minimum product price. Corresponds to the JSON property min

Returns:

  • (Float)


1261
1262
1263
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1261

def min
  @min
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1268
1269
1270
1271
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1268

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