Sha256: ac02b2e16bf16a602620487946c52604d12eb160887a59591a20dce50f8e4771

Contents?: true

Size: 491 Bytes

Versions: 12

Compression:

Stored size: 491 Bytes

Contents

module Yt
  module Annotations
    # An abstract class with common attributes for every type of annotation.
    class Base
      # @return [String] the text of the annotation.
      attr_reader :text

      # @return [Float] when the annotation appears (in seconds).
      attr_reader :starts_at

      # @return [Float] when the annotation disappears (in seconds).
      attr_reader :ends_at

      # @return [Hash, nil] what the annotation links.
      attr_reader :link
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
yt-annotations-2.0.0 lib/yt/annotations/base.rb
yt-annotations-1.4.2 lib/yt/annotations/base.rb
yt-annotations-1.4.1 lib/yt/annotations/base.rb
yt-annotations-1.4.0 lib/yt/annotations/base.rb
yt-annotations-1.3.2 lib/yt/annotations/base.rb
yt-annotations-1.3.1 lib/yt/annotations/base.rb
yt-annotations-1.3.0 lib/yt/annotations/base.rb
yt-annotations-1.2.3 lib/yt/annotations/base.rb
yt-annotations-1.2.2 lib/yt/annotations/base.rb
yt-annotations-1.2.1 lib/yt/annotations/base.rb
yt-annotations-1.2.0 lib/yt/annotations/base.rb
yt-annotations-1.1.0 lib/yt/annotations/base.rb