Class: Twitch::V2::Video
- Inherits:
-
Object
- Object
- Twitch::V2::Video
- Defined in:
- lib/kappa/video.rb
Overview
Videos are broadcasts or highlights owned by a channel. Broadcasts are unedited videos that are saved after a streaming session. Highlights are videos edited from broadcasts by the channel's owner.
Instance Attribute Summary collapse
-
#channel ⇒ Channel
readonly
The channel on which this video was originally streamed.
-
#description ⇒ String
readonly
Description of this video.
-
#embed_html ⇒ String
readonly
HTML code for embedding this video on a web page.
-
#game_name ⇒ String
readonly
The name of the game played in this video.
-
#id ⇒ String
readonly
Unique Twitch ID for this video.
-
#length ⇒ Fixnum
readonly
The length of this video (seconds).
-
#preview_url ⇒ String
readonly
URL of a preview screenshot taken from the video stream.
-
#recorded_at ⇒ Time
readonly
When this video was recorded (UTC).
-
#title ⇒ String
readonly
Title of this video.
-
#url ⇒ String
readonly
URL of this video on Twitch.
-
#view_count ⇒ Fixnum
readonly
The number of views this video has received all-time.
Instance Attribute Details
#channel ⇒ Channel (readonly)
Returns The channel on which this video was originally streamed.
98 99 100 |
# File 'lib/kappa/video.rb', line 98 def channel @channel end |
#description ⇒ String (readonly)
Returns Description of this video.
80 81 82 |
# File 'lib/kappa/video.rb', line 80 def description @description end |
#embed_html ⇒ String (readonly)
Returns HTML code for embedding this video on a web page.
103 104 105 |
# File 'lib/kappa/video.rb', line 103 def @embed_html end |
#game_name ⇒ String (readonly)
Returns The name of the game played in this video.
90 91 92 |
# File 'lib/kappa/video.rb', line 90 def game_name @game_name end |
#id ⇒ String (readonly)
This is a String
, not a Fixnum
like most other object IDs.
Returns Unique Twitch ID for this video.
57 58 59 |
# File 'lib/kappa/video.rb', line 57 def id @id end |
#length ⇒ Fixnum (readonly)
Returns The length of this video (seconds).
85 86 87 |
# File 'lib/kappa/video.rb', line 85 def length @length end |
#preview_url ⇒ String (readonly)
Returns URL of a preview screenshot taken from the video stream.
95 96 97 |
# File 'lib/kappa/video.rb', line 95 def preview_url @preview_url end |
#recorded_at ⇒ Time (readonly)
Returns When this video was recorded (UTC).
67 68 69 |
# File 'lib/kappa/video.rb', line 67 def recorded_at @recorded_at end |
#title ⇒ String (readonly)
Returns Title of this video. This is seen on the video's page.
62 63 64 |
# File 'lib/kappa/video.rb', line 62 def title @title end |
#url ⇒ String (readonly)
Returns URL of this video on Twitch.
72 73 74 |
# File 'lib/kappa/video.rb', line 72 def url @url end |
#view_count ⇒ Fixnum (readonly)
Returns The number of views this video has received all-time.
77 78 79 |
# File 'lib/kappa/video.rb', line 77 def view_count @view_count end |