Class: Twitch::VideoStreamMarkers
- Inherits:
-
Object
- Object
- Twitch::VideoStreamMarkers
- Defined in:
- lib/twitch/stream_marker.rb
Overview
A video with a list of markers.
Instance Attribute Summary collapse
-
#markers ⇒ Object
readonly
Returns the value of attribute markers.
-
#video_id ⇒ Object
readonly
Returns the value of attribute video_id.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ VideoStreamMarkers
constructor
A new instance of VideoStreamMarkers.
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
#markers ⇒ Object (readonly)
Returns the value of attribute markers.
40 41 42 |
# File 'lib/twitch/stream_marker.rb', line 40 def markers @markers end |
#video_id ⇒ Object (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 |