Method: Yt::Models::PlaylistItem#thumbnail_url

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

#thumbnail_url(size = :default) ⇒ String?

Returns the URL of the item’s thumbnail.

Parameters:

  • size (Symbol, String) (defaults to: :default)

    The size of the item’s thumbnail.

Returns:

  • (String)

    if size is default, the URL of a 120x90px image.

  • (String)

    if size is medium, the URL of a 320x180px image.

  • (String)

    if size is high, the URL of a 480x360px image.

  • (nil)

    if the size is not default, medium or high.



26
# File 'lib/yt/models/playlist_item.rb', line 26

delegate :thumbnail_url, to: :snippet