Class: Google::Apis::YoutubeV3::ActivityContentDetailsRecommendation

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#reasonString

The reason that the resource is recommended to the user. Corresponds to the JSON property reason

Returns:

  • (String)


399
400
401
# File 'generated/google/apis/youtube_v3/classes.rb', line 399

def reason
  @reason
end

#resource_idGoogle::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_idGoogle::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