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

Returns a new instance of VideoStreamMarkers.



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

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

Instance Attribute Details

#markersObject (readonly)

Returns the value of attribute markers.



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

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