Class: Twitch::VideoStreamMarkers

Inherits:
Object
  • Object
show all
Defined in:
lib/twitch/stream_marker.rb

Overview

A video with a list of markers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ VideoStreamMarkers



43
44
45
46
# File 'lib/twitch/stream_marker.rb', line 43

def initialize(attributes = {})
  @video_id = attributes['video_id']
  @markers = attributes['markers'].map{ |m| StreamMarker.new(m) }
end

Instance Attribute Details

#markersObject (readonly)

Returns the value of attribute markers.



41
42
43
# File 'lib/twitch/stream_marker.rb', line 41

def markers
  @markers
end

#video_idObject (readonly)

Returns the value of attribute video_id.



40
41
42
# File 'lib/twitch/stream_marker.rb', line 40

def video_id
  @video_id
end