Class: Google::Apis::YoutubeV3::ActivityContentDetailsRecommendation
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::ActivityContentDetailsRecommendation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/youtube_v3/classes.rb,
generated/google/apis/youtube_v3/representations.rb,
generated/google/apis/youtube_v3/representations.rb
Overview
Information that identifies the recommended resource.
Instance Attribute Summary collapse
-
#reason ⇒ String
The reason that the resource is recommended to the user.
-
#resource_id ⇒ Google::Apis::YoutubeV3::ResourceId
A resource id is a generic reference that points to another YouTube resource.
-
#seed_resource_id ⇒ Google::Apis::YoutubeV3::ResourceId
A resource id is a generic reference that points to another YouTube resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ActivityContentDetailsRecommendation
constructor
A new instance of ActivityContentDetailsRecommendation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ActivityContentDetailsRecommendation
Returns a new instance of ActivityContentDetailsRecommendation
411 412 413 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 411 def initialize(**args) update!(**args) end |
Instance Attribute Details
#reason ⇒ String
The reason that the resource is recommended to the user.
Corresponds to the JSON property reason
399 400 401 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 399 def reason @reason end |
#resource_id ⇒ Google::Apis::YoutubeV3::ResourceId
A resource id is a generic reference that points to another YouTube resource.
Corresponds to the JSON property resourceId
404 405 406 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 404 def resource_id @resource_id end |
#seed_resource_id ⇒ Google::Apis::YoutubeV3::ResourceId
A resource id is a generic reference that points to another YouTube resource.
Corresponds to the JSON property seedResourceId
409 410 411 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 409 def seed_resource_id @seed_resource_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
416 417 418 419 420 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 416 def update!(**args) @reason = args[:reason] if args.key?(:reason) @resource_id = args[:resource_id] if args.key?(:resource_id) @seed_resource_id = args[:seed_resource_id] if args.key?(:seed_resource_id) end |