Class: Yt::Annotations::EndScreen
- Defined in:
- lib/yt/annotations/end_screen.rb
Overview
An end screen annotation shows in the last 5 to seconds of the video.
Instance Attribute Summary
Attributes inherited from Base
#ends_at, #link, #starts_at, #text
Instance Method Summary collapse
-
#initialize(json = {}) ⇒ EndScreen
constructor
A new instance of EndScreen.
Constructor Details
#initialize(json = {}) ⇒ EndScreen
Returns a new instance of EndScreen.
9 10 11 12 13 14 |
# File 'lib/yt/annotations/end_screen.rb', line 9 def initialize(json = {}) @text = text_in json @starts_at = json['startMs'].to_i / 1000.0 @ends_at = ends_at_in json @link = to_link json end |