Class: Google::Apis::ContentV2_1::RecommendationDescription
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::RecommendationDescription
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Google-provided description for the recommendation.
Instance Attribute Summary collapse
-
#text ⇒ String
Output only.
-
#type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RecommendationDescription
constructor
A new instance of RecommendationDescription.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RecommendationDescription
Returns a new instance of RecommendationDescription.
11610 11611 11612 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11610 def initialize(**args) update!(**args) end |
Instance Attribute Details
#text ⇒ String
Output only. Text of the description.
Corresponds to the JSON property text
11603 11604 11605 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11603 def text @text end |
#type ⇒ String
Output only. Type of the description.
Corresponds to the JSON property type
11608 11609 11610 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11608 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11615 11616 11617 11618 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11615 def update!(**args) @text = args[:text] if args.key?(:text) @type = args[:type] if args.key?(:type) end |