class Google::Apis::YoutubeV3::PlaylistItemSnippet

Basic details about a playlist, including title, description and thumbnails. Basic details of a YouTube Playlist item provided by the author. Next ID: 15

Attributes

channel_id[RW]

The ID that YouTube uses to uniquely identify the user that added the item to the playlist. Corresponds to the JSON property `channelId` @return [String]

channel_title[RW]

Channel title for the channel that the playlist item belongs to. Corresponds to the JSON property `channelTitle` @return [String]

description[RW]

The item's description. Corresponds to the JSON property `description` @return [String]

playlist_id[RW]

The ID that YouTube uses to uniquely identify thGe playlist that the playlist item is in. Corresponds to the JSON property `playlistId` @return [String]

position[RW]

The order in which the item appears in the playlist. The value uses a zero- based index, so the first item has a position of 0, the second item has a position of 1, and so forth. Corresponds to the JSON property `position` @return [Fixnum]

published_at[RW]

The date and time that the item was added to the playlist. Corresponds to the JSON property `publishedAt` @return [DateTime]

resource_id[RW]

A resource id is a generic reference that points to another YouTube resource. Corresponds to the JSON property `resourceId` @return [Google::Apis::YoutubeV3::ResourceId]

thumbnails[RW]

Internal representation of thumbnails for a YouTube resource. Corresponds to the JSON property `thumbnails` @return [Google::Apis::YoutubeV3::ThumbnailDetails]

title[RW]

The item's title. Corresponds to the JSON property `title` @return [String]

video_owner_channel_id[RW]

Channel id for the channel this video belongs to. Corresponds to the JSON property `videoOwnerChannelId` @return [String]

video_owner_channel_title[RW]

Channel title for the channel this video belongs to. Corresponds to the JSON property `videoOwnerChannelTitle` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/youtube_v3/classes.rb, line 5855
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/youtube_v3/classes.rb, line 5860
def update!(**args)
  @channel_id = args[:channel_id] if args.key?(:channel_id)
  @channel_title = args[:channel_title] if args.key?(:channel_title)
  @description = args[:description] if args.key?(:description)
  @playlist_id = args[:playlist_id] if args.key?(:playlist_id)
  @position = args[:position] if args.key?(:position)
  @published_at = args[:published_at] if args.key?(:published_at)
  @resource_id = args[:resource_id] if args.key?(:resource_id)
  @thumbnails = args[:thumbnails] if args.key?(:thumbnails)
  @title = args[:title] if args.key?(:title)
  @video_owner_channel_id = args[:video_owner_channel_id] if args.key?(:video_owner_channel_id)
  @video_owner_channel_title = args[:video_owner_channel_title] if args.key?(:video_owner_channel_title)
end