class Yt::VideoAudit::SubscribeAnnotation
Count how many subject videos have an annotation with a subscribe link.
Public Instance Methods
description()
click to toggle source
# File lib/yt/video_audit/subscribe_annotation.rb, line 12 def description 'The number of videos with a link to subscribe in its annotations' end
title()
click to toggle source
# File lib/yt/video_audit/subscribe_annotation.rb, line 8 def title 'Subscribe Annotations' end
Private Instance Methods
valid?(video)
click to toggle source
# File lib/yt/video_audit/subscribe_annotation.rb, line 18 def valid?(video) Yt::Annotations.for(video.id).any? do |annotation| annotation.link && annotation.link[:type] == :subscribe end end