Class: Yt::Annotations::Base
- Inherits:
-
Object
- Object
- Yt::Annotations::Base
- Defined in:
- lib/yt/annotations/base.rb
Overview
An abstract class with common attributes for every type of annotation.
Instance Attribute Summary collapse
-
#ends_at ⇒ Float
readonly
When the annotation disappears (in seconds).
-
#link ⇒ Hash?
readonly
What the annotation links.
-
#starts_at ⇒ Float
readonly
When the annotation appears (in seconds).
-
#text ⇒ String
readonly
The text of the annotation.
Instance Attribute Details
#ends_at ⇒ Float (readonly)
Returns when the annotation disappears (in seconds).
12 13 14 |
# File 'lib/yt/annotations/base.rb', line 12 def ends_at @ends_at end |
#link ⇒ Hash? (readonly)
Returns what the annotation links.
15 16 17 |
# File 'lib/yt/annotations/base.rb', line 15 def link @link end |
#starts_at ⇒ Float (readonly)
Returns when the annotation appears (in seconds).
9 10 11 |
# File 'lib/yt/annotations/base.rb', line 9 def starts_at @starts_at end |
#text ⇒ String (readonly)
Returns the text of the annotation.
6 7 8 |
# File 'lib/yt/annotations/base.rb', line 6 def text @text end |