lib/yt/audit.rb in yt-audit-0.2.0 vs lib/yt/audit.rb in yt-audit-0.2.1

- old
+ new

@@ -3,10 +3,11 @@ require 'yt/video_audit/info_card' require 'yt/video_audit/brand_anchoring' require 'yt/video_audit/subscribe_annotation' require 'yt/video_audit/youtube_association' require 'yt/video_audit/end_card' +require 'yt/playlist_audit/description' module Yt class Audit def initialize(channel_id:) @channel_id = channel_id @@ -16,14 +17,19 @@ [ Yt::VideoAudit::InfoCard.new(videos: videos), Yt::VideoAudit::BrandAnchoring.new(videos: videos, brand: channel.title), Yt::VideoAudit::SubscribeAnnotation.new(videos: videos), Yt::VideoAudit::YoutubeAssociation.new(videos: videos), - Yt::VideoAudit::EndCard.new(videos: videos) + Yt::VideoAudit::EndCard.new(videos: videos), + Yt::PlaylistAudit::Description.new(playlists: playlists) ] end private + + def playlists + @playlists ||= channel.playlists.first 10 + end def videos @videos ||= channel.videos.first 10 end