class Yt::Models::URL

Provides methods to identify YouTube resources from names or URLs. @see developers.google.com/youtube/v3/docs @example Identify a YouTube video from its short URL:

url = Yt::URL.new 'youtu.be/kawaiiguy'
url.id # => 'UC4lU5YG9QDgs0X2jdnt7cdQ'
url.resource # => #<Yt::Channel @id=UC4lU5YG9QDgs0X2jdnt7cdQ>