Class: Google::Apis::RecommenderV1::GoogleCloudRecommenderV1CostProjection
- Inherits:
-
Object
- Object
- Google::Apis::RecommenderV1::GoogleCloudRecommenderV1CostProjection
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/recommender_v1/classes.rb,
generated/google/apis/recommender_v1/representations.rb,
generated/google/apis/recommender_v1/representations.rb
Overview
Contains metadata about how much money a recommendation can save or incur.
Instance Attribute Summary collapse
-
#cost ⇒ Google::Apis::RecommenderV1::GoogleTypeMoney
Represents an amount of money with its currency type.
-
#duration ⇒ String
Duration for which this cost applies.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecommenderV1CostProjection
constructor
A new instance of GoogleCloudRecommenderV1CostProjection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecommenderV1CostProjection
Returns a new instance of GoogleCloudRecommenderV1CostProjection.
39 40 41 |
# File 'generated/google/apis/recommender_v1/classes.rb', line 39 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cost ⇒ Google::Apis::RecommenderV1::GoogleTypeMoney
Represents an amount of money with its currency type.
Corresponds to the JSON property cost
32 33 34 |
# File 'generated/google/apis/recommender_v1/classes.rb', line 32 def cost @cost end |
#duration ⇒ String
Duration for which this cost applies.
Corresponds to the JSON property duration
37 38 39 |
# File 'generated/google/apis/recommender_v1/classes.rb', line 37 def duration @duration end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
44 45 46 47 |
# File 'generated/google/apis/recommender_v1/classes.rb', line 44 def update!(**args) @cost = args[:cost] if args.key?(:cost) @duration = args[:duration] if args.key?(:duration) end |