Class: Google::Apis::YoutubeV3::PlaylistItemSnippet

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/youtube_v3/classes.rb,
lib/google/apis/youtube_v3/representations.rb,
lib/google/apis/youtube_v3/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PlaylistItemSnippet

Returns a new instance of PlaylistItemSnippet.



6306
6307
6308
# File 'lib/google/apis/youtube_v3/classes.rb', line 6306

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

Instance Attribute Details

#channel_idString

The ID that YouTube uses to uniquely identify the user that added the item to the playlist. Corresponds to the JSON property channelId

Returns:

  • (String)


6251
6252
6253
# File 'lib/google/apis/youtube_v3/classes.rb', line 6251

def channel_id
  @channel_id
end

#channel_titleString

Channel title for the channel that the playlist item belongs to. Corresponds to the JSON property channelTitle

Returns:

  • (String)


6256
6257
6258
# File 'lib/google/apis/youtube_v3/classes.rb', line 6256

def channel_title
  @channel_title
end

#descriptionString

The item's description. Corresponds to the JSON property description

Returns:

  • (String)


6261
6262
6263
# File 'lib/google/apis/youtube_v3/classes.rb', line 6261

def description
  @description
end

#playlist_idString

The ID that YouTube uses to uniquely identify thGe playlist that the playlist item is in. Corresponds to the JSON property playlistId

Returns:

  • (String)


6267
6268
6269
# File 'lib/google/apis/youtube_v3/classes.rb', line 6267

def playlist_id
  @playlist_id
end

#positionFixnum

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

Returns:

  • (Fixnum)


6274
6275
6276
# File 'lib/google/apis/youtube_v3/classes.rb', line 6274

def position
  @position
end

#published_atDateTime

The date and time that the item was added to the playlist. Corresponds to the JSON property publishedAt

Returns:

  • (DateTime)


6279
6280
6281
# File 'lib/google/apis/youtube_v3/classes.rb', line 6279

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



6284
6285
6286
# File 'lib/google/apis/youtube_v3/classes.rb', line 6284

def resource_id
  @resource_id
end

#thumbnailsGoogle::Apis::YoutubeV3::ThumbnailDetails

Internal representation of thumbnails for a YouTube resource. Corresponds to the JSON property thumbnails



6289
6290
6291
# File 'lib/google/apis/youtube_v3/classes.rb', line 6289

def thumbnails
  @thumbnails
end

#titleString

The item's title. Corresponds to the JSON property title

Returns:

  • (String)


6294
6295
6296
# File 'lib/google/apis/youtube_v3/classes.rb', line 6294

def title
  @title
end

#video_owner_channel_idString

Channel id for the channel this video belongs to. Corresponds to the JSON property videoOwnerChannelId

Returns:

  • (String)


6299
6300
6301
# File 'lib/google/apis/youtube_v3/classes.rb', line 6299

def video_owner_channel_id
  @video_owner_channel_id
end

#video_owner_channel_titleString

Channel title for the channel this video belongs to. Corresponds to the JSON property videoOwnerChannelTitle

Returns:

  • (String)


6304
6305
6306
# File 'lib/google/apis/youtube_v3/classes.rb', line 6304

def video_owner_channel_title
  @video_owner_channel_title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
# File 'lib/google/apis/youtube_v3/classes.rb', line 6311

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