Sha256: 520c67058e83e3a1a670971744e5204cb22318655b94a1c3eda9437ba666040c
Contents?: true
Size: 599 Bytes
Versions: 4
Compression:
Stored size: 599 Bytes
Contents
require 'yt/video_audit/base' module Yt module VideoAudit # Count how many subject videos have an end screen # with a video link. class VideoEndScreen < Base def title 'Video End Screens' end def description 'The number of videos with any link to a video in its end screens' end private def valid?(video) Yt::Annotations.for(video.id).any? do |annotation| annotation.instance_of?(Yt::Annotations::EndScreen) && annotation.link && annotation.link[:type] == :video end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems