Sha256: 670d711531306f877c50aa5d7fedea3f9e9eff2169ffdca915bf0b4d1c4d8f4b
Contents?: true
Size: 605 Bytes
Versions: 4
Compression:
Stored size: 605 Bytes
Contents
require 'yt/video_audit/base' module Yt module VideoAudit # Count how many subject videos have an end screen # with a website link. class WebsiteEndScreen < Base def title 'Website End Screens' end def description 'The number of videos with any external link 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] == :website end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems