Class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice
- Inherits:
-
Object
- Object
- Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice
- 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
Exact product price.
Instance Attribute Summary collapse
-
#display_price ⇒ Float
Optional.
-
#original_price ⇒ Float
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice
constructor
A new instance of GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice
Returns a new instance of GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice.
1237 1238 1239 |
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1237 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_price ⇒ Float
Optional. Display price of the product.
Corresponds to the JSON property displayPrice
1229 1230 1231 |
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1229 def display_price @display_price end |
#original_price ⇒ Float
Optional. Price of the product without any discount. If zero, by default set
to be the 'displayPrice'.
Corresponds to the JSON property originalPrice
1235 1236 1237 |
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1235 def original_price @original_price end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1242 1243 1244 1245 |
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1242 def update!(**args) @display_price = args[:display_price] if args.key?(:display_price) @original_price = args[:original_price] if args.key?(:original_price) end |