Sha256: 0cf87fc81f6609659478bff822fa902bb7fcbac485bbbfa9ef41dc6f70b5ab36
Contents?: true
Size: 585 Bytes
Versions: 3
Compression:
Stored size: 585 Bytes
Contents
module Yt module PlaylistAudit # Count how many playlists have its description. class Description def initialize(options={}) @playlists = options[:playlists] end def total_count @playlists.count end def valid_count @playlists.count {|playlist| valid? playlist} end def title 'Playlist Description' end def description 'The number of playlists with description' end private def valid?(playlist) !playlist.description.empty? end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yt-audit-0.5.3 | lib/yt/playlist_audit/description.rb |
yt-audit-0.5.2 | lib/yt/playlist_audit/description.rb |
yt-audit-0.5.1 | lib/yt/playlist_audit/description.rb |