Class: Google::Apis::YoutubeV3::ActivityContentDetailsPlaylistItem

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 about a new playlist item.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ActivityContentDetailsPlaylistItem

Returns a new instance of ActivityContentDetailsPlaylistItem.



355
356
357
# File 'generated/google/apis/youtube_v3/classes.rb', line 355

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#playlist_idString

The value that YouTube uses to uniquely identify the playlist. Corresponds to the JSON property playlistId

Returns:

  • (String)


343
344
345
# File 'generated/google/apis/youtube_v3/classes.rb', line 343

def playlist_id
  @playlist_id
end

#playlist_item_idString

ID of the item within the playlist. Corresponds to the JSON property playlistItemId

Returns:

  • (String)


348
349
350
# File 'generated/google/apis/youtube_v3/classes.rb', line 348

def playlist_item_id
  @playlist_item_id
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



353
354
355
# File 'generated/google/apis/youtube_v3/classes.rb', line 353

def resource_id
  @resource_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



360
361
362
363
364
# File 'generated/google/apis/youtube_v3/classes.rb', line 360

def update!(**args)
  @playlist_id = args[:playlist_id] if args.key?(:playlist_id)
  @playlist_item_id = args[:playlist_item_id] if args.key?(:playlist_item_id)
  @resource_id = args[:resource_id] if args.key?(:resource_id)
end