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

Describes the various file formats in which a Youtube video may be made available and allows looking them up by format code number.

Methods

by_code   new  

Public Class methods

Allows you to get the video format for a specific format code.

A full list of format codes is available at:

code.google.com/apis/youtube/reference.html#youtube_data_api_tag_media:content

Parameters

  :format_code<Fixnum>:: The Youtube Format code of the object.

Returns

  YouTubeG::Model::Video::Format: Video format object

Instantiates a new video format object.

Parameters

  :format_code<Fixnum>:: The Youtube Format code of the object.
  :name<Symbol>:: The name of the format

Returns

  YouTubeG::Model::Video::Format: Video format object

[Validate]