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.
11648 11649 11650 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11648 def initialize(**args) update!(**args) end |
Instance Attribute Details
#text ⇒ String
Output only. Text of the description.
Corresponds to the JSON property text
11641 11642 11643 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11641 def text @text end |
#type ⇒ String
Output only. Type of the description.
Corresponds to the JSON property type
11646 11647 11648 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11646 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11653 11654 11655 11656 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11653 def update!(**args) @text = args[:text] if args.key?(:text) @type = args[:type] if args.key?(:type) end |