class Yt::VideoAudit::InfoCard

Count how many subject videos have an info card.

Public Instance Methods

description() click to toggle source
# File lib/yt/video_audit/info_card.rb, line 11
def description
  'The number of videos with an info card'
end
title() click to toggle source
# File lib/yt/video_audit/info_card.rb, line 7
def title
  'Info Cards'
end

Private Instance Methods

valid?(video) click to toggle source
# File lib/yt/video_audit/info_card.rb, line 17
def valid?(video)
  Yt::Annotations.for(video.id).any? do |annotation|
    annotation.instance_of? Yt::Annotations::Card
  end
end