Sha256: 8a8258b5b7102eaf0b257b77d6ea7a6e34b384cdd673c620f0fddf2b2ff94e36

Contents?: true

Size: 484 Bytes

Versions: 1

Compression:

Stored size: 484 Bytes

Contents

require 'yt/video_audit/base'

module Yt
  module VideoAudit
    # Count how many subject videos have any end screen.
    class EndScreen < Base
      def title
        'End Screens'
      end

      def description
        'The number of videos with at least one end screen'
      end

    private

      def valid?(video)
        Yt::Annotations.for(video.id).any? do |annotation|
          annotation.instance_of? Yt::Annotations::EndScreen
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yt-audit-0.5.2 lib/yt/video_audit/end_screen.rb