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

Constructor Details

#initialize(**args) ⇒ ActivityContentDetailsRecommendation

Returns a new instance of ActivityContentDetailsRecommendation.



467
468
469
# File 'generated/google/apis/youtube_v3/classes.rb', line 467

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)


455
456
457
# File 'generated/google/apis/youtube_v3/classes.rb', line 455

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



460
461
462
# File 'generated/google/apis/youtube_v3/classes.rb', line 460

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



465
466
467
# File 'generated/google/apis/youtube_v3/classes.rb', line 465

def seed_resource_id
  @seed_resource_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



472
473
474
475
476
# File 'generated/google/apis/youtube_v3/classes.rb', line 472

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