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.
11601 11602 11603 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11601 def initialize(**args) update!(**args) end |
Instance Attribute Details
#text ⇒ String
Output only. Text of the description.
Corresponds to the JSON property text
11594 11595 11596 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11594 def text @text end |
#type ⇒ String
Output only. Type of the description.
Corresponds to the JSON property type
11599 11600 11601 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11599 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11606 11607 11608 11609 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11606 def update!(**args) @text = args[:text] if args.key?(:text) @type = args[:type] if args.key?(:type) end |