Yt::Models::Video
Inherits JSON::Serializable < Reference < Object
Represents a YouTube video resource with essential metadata.
This class provides a strongly-typed representation of YouTube video data returned from the YouTube Data API v3.
Example
video = Video.new(
id: "dQw4w9WgXcQ",
title: "Never Gonna Give You Up",
privacy_status: "public"
)
video.valid_id? # => true
Constructors
new(pull : JSON::PullParser)
Sourcenew(id : String, title : String | Nil = nil, privacy_status : String | Nil = nil, published_at : Time | Nil = nil, description : String | Nil = nil, tags : Array(String) | Nil = nil, category_id : String | Nil = nil, duration : String | Nil = nil, default_language : String | Nil = nil, default_audio_language : String | Nil = nil, channel_title : String | Nil = nil)
Create a new Video instance
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source