Class YouTubeG::Model::Video
In: lib/youtube_g/model/video.rb
Parent: YouTubeG::Record

Methods

Public Instance methods

Provides a URL and various other types of information about a video.

Returns

  YouTubeG::Model::Content: Data about the embeddable video.

Gives you the HTML to embed the video on your website.

Returns

  String: The HTML for embedding the video on your website.

The URL needed for embedding the video in a page.

Returns

  String: Absolute URL for embedding video

Allows you to check whether the video can be embedded on a webpage.

Returns

  Boolean: True if the video can be embedded, false if not.

Videos related to the current video.

Returns

  YouTubeG::Response::VideoSearch

Video responses to the current video.

Returns

  YouTubeG::Response::VideoSearch

The ID of the video, useful for searching for the video again without having to store it anywhere. A regular query search, with this id will return the same video.

Example

  >> video.unique_id
  => "ZTUVgYoeN_o"

Returns

  String: The Youtube video id.

[Validate]