class Yt::VideoAudit::TagsLength
Count how many subject videos use at least 80% of 500 character limit of tags.
Public Instance Methods
description()
click to toggle source
# File lib/yt/video_audit/tags_length.rb, line 12 def description 'The number of videos that use at least 80%'\ ' of the available tags length limit' end
title()
click to toggle source
# File lib/yt/video_audit/tags_length.rb, line 8 def title 'Length of Tags' end
Private Instance Methods
valid?(video)
click to toggle source
# File lib/yt/video_audit/tags_length.rb, line 19 def valid?(video) tags_length = video.tags.map {|tag| tag.include?(' ') ? "\"#{tag}\"" : tag }.join(",").length tags_length / 500.0 >= 0.8 end