class Yt::Audit

Constants

VERSION

Public Class Methods

new(channel:, videos: nil, playlists: nil, brand: nil) click to toggle source
# File lib/yt/audit.rb, line 19
def initialize(channel:, videos: nil, playlists: nil, brand: nil)
  @channel = channel
  @videos = videos || channel.videos.select(:snippet).first(10)
  @playlists = playlists || channel.playlists.first(10)
  @brand = brand || channel.title
end

Public Instance Methods

run() click to toggle source
# File lib/yt/audit.rb, line 26
def run
  [
    Yt::VideoAudit::InfoCard.new(videos: @videos),
    Yt::VideoAudit::BrandAnchoring.new(videos: @videos, brand: @brand),
    Yt::VideoAudit::YoutubeAssociation.new(videos: @videos),
    Yt::PlaylistAudit::Description.new(playlists: @playlists),
    Yt::VideoAudit::EndScreen.new(videos: @videos),
    Yt::VideoAudit::TagsLength.new(videos: @videos),
    Yt::VideoAudit::SubscribeEndScreen.new(videos: @videos),
    Yt::VideoAudit::VideoEndScreen.new(videos: @videos),
    Yt::VideoAudit::PlaylistEndScreen.new(videos: @videos),
    Yt::VideoAudit::WebsiteEndScreen.new(videos: @videos),
    Yt::VideoAudit::EndCard.new(videos: @videos),
    Yt::VideoAudit::SubscribeAnnotation.new(videos: @videos),
  ]
end