Method: Yt::Models::PlaylistItem#video_id

Defined in:
lib/yt/models/playlist_item.rb

#video_idString

Returns the ID of the video referred by the item.

Returns:

  • (String)

    the ID of the video referred by the item.



45
46
47
# File 'lib/yt/models/playlist_item.rb', line 45

def video_id
  snippet.resource_id['videoId']
end