Sha256: 73d0f7b25f6701aa78a81ef3566b6426e93cacb24d335641c93aea28c6303352
Contents?: true
Size: 457 Bytes
Versions: 2
Compression:
Stored size: 457 Bytes
Contents
require 'yt/video_audit/base' module Yt module VideoAudit # Count how many subject videos have an info card. class InfoCard < Base def title 'Info Cards' end def description 'The number of videos with an info card' end private def valid?(video) Yt::Annotations.for(video.id).any? do |annotation| annotation.is_a? Yt::Annotations::Card end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yt-audit-0.2.1 | lib/yt/video_audit/info_card.rb |
yt-audit-0.2.0 | lib/yt/video_audit/info_card.rb |