class Yt::VideoAudit::EndScreen

Count how many subject videos have any end screen.

Public Instance Methods

description() click to toggle source
# File lib/yt/video_audit/end_screen.rb, line 11
def description
  'The number of videos with at least one end screen element'
end
title() click to toggle source
# File lib/yt/video_audit/end_screen.rb, line 7
def title
  'End Screens'
end

Private Instance Methods

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