Class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItemExactPrice

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

Exact product price.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_priceFloat

Optional. Display price of the product. Corresponds to the JSON property displayPrice

Returns:

  • (Float)


1229
1230
1231
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 1229

def display_price
  @display_price
end

#original_priceFloat

Optional. Price of the product without any discount. If zero, by default set to be the 'displayPrice'. Corresponds to the JSON property originalPrice

Returns:

  • (Float)


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