Sha256: 595f3d72a09f263306fb286d3616dcecb15a447ca2bc6a3807d6930b9c3180f3

Contents?: true

Size: 497 Bytes

Versions: 1

Compression:

Stored size: 497 Bytes

Contents

require 'yt/video_audit/base'

module Yt
  module VideoAudit
    # Count how many subject videos have a branding.
    class InvideoProgramming < Base
      def title
        'In-Video Programming'
      end

      def description
        'The number of videos with an in-video programming'
      end

    private

      def valid?(video)
        Yt::Annotations.for(video.id).any? do |annotation|
          annotation.instance_of? Yt::Annotations::Branding
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yt-audit-0.5.3 lib/yt/video_audit/invideo_programming.rb