Class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange
- Inherits:
-
Object
- Object
- Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/recommendationengine_v1beta1/classes.rb,
lib/google/apis/recommendationengine_v1beta1/representations.rb,
lib/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
-
#max ⇒ Float
Required.
-
#min ⇒ Float
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange
constructor
A new instance of GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange
Returns a new instance of GoogleCloudRecommendationengineV1beta1ProductCatalogItemPriceRange.
1271 1272 1273 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1271 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max ⇒ Float
Required. The maximum product price.
Corresponds to the JSON property max
1264 1265 1266 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1264 def max @max end |
#min ⇒ Float
Required. The minimum product price.
Corresponds to the JSON property min
1269 1270 1271 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1269 def min @min end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1276 1277 1278 1279 |
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1276 def update!(**args) @max = args[:max] if args.key?(:max) @min = args[:min] if args.key?(:min) end |