class Twitch::Video
A captured broadcast or portion of a broadcast.
Constants
- DATE_ATTRIBUTES
Attributes
created_at[R]
Date the video was created.
description[R]
Description of the video.
duration[R]
Duration of the video, in the format 0h0m0s
id[R]
ID of the video.
language[R]
Language of the video.
published_at[R]
Date the video was published.
thumbnail_url[R]
URL to the thumbnail image of the video.
title[R]
Title of the video.
type[R]
Type of the video (archive, highlight or upload).
url[R]
URL of the video.
user_id[R]
ID of the user who uploaded/broadcasted the video.
user_name[R]
Display name of the user who uploaded/broadcasted the video.
view_count[R]
Number of views
viewable[R]
Viewability of the video (public or private)
Public Class Methods
new(attributes = {})
click to toggle source
# File lib/twitch/video.rb, line 38 def initialize(attributes = {}) attributes.each do |k, v| if DATE_ATTRIBUTES.include?(k.to_sym) instance_variable_set("@#{k}", Time.parse(v)) else instance_variable_set("@#{k}", v) end end end