Class: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1CostProjection
- Inherits:
-
Object
- Object
- Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1CostProjection
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/recommender_v1beta1/classes.rb,
lib/google/apis/recommender_v1beta1/representations.rb,
lib/google/apis/recommender_v1beta1/representations.rb
Overview
Contains metadata about how much money a recommendation can save or incur.
Instance Attribute Summary collapse
-
#cost ⇒ Google::Apis::RecommenderV1beta1::GoogleTypeMoney
Represents an amount of money with its currency type.
-
#cost_in_local_currency ⇒ Google::Apis::RecommenderV1beta1::GoogleTypeMoney
Represents an amount of money with its currency type.
-
#duration ⇒ String
Duration for which this cost applies.
-
#pricing_type ⇒ String
How the cost is calculated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecommenderV1beta1CostProjection
constructor
A new instance of GoogleCloudRecommenderV1beta1CostProjection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecommenderV1beta1CostProjection
Returns a new instance of GoogleCloudRecommenderV1beta1CostProjection.
49 50 51 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 49 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cost ⇒ Google::Apis::RecommenderV1beta1::GoogleTypeMoney
Represents an amount of money with its currency type.
Corresponds to the JSON property cost
32 33 34 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 32 def cost @cost end |
#cost_in_local_currency ⇒ Google::Apis::RecommenderV1beta1::GoogleTypeMoney
Represents an amount of money with its currency type.
Corresponds to the JSON property costInLocalCurrency
37 38 39 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 37 def cost_in_local_currency @cost_in_local_currency end |
#duration ⇒ String
Duration for which this cost applies.
Corresponds to the JSON property duration
42 43 44 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 42 def duration @duration end |
#pricing_type ⇒ String
How the cost is calculated.
Corresponds to the JSON property pricingType
47 48 49 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 47 def pricing_type @pricing_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
54 55 56 57 58 59 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 54 def update!(**args) @cost = args[:cost] if args.key?(:cost) @cost_in_local_currency = args[:cost_in_local_currency] if args.key?(:cost_in_local_currency) @duration = args[:duration] if args.key?(:duration) @pricing_type = args[:pricing_type] if args.key?(:pricing_type) end |