class Yt::VideoAudit::BrandAnchoring
Count how many subject videos include its brand name in the title.
Public Class Methods
new(options = {})
click to toggle source
Calls superclass method
Yt::VideoAudit::Base::new
# File lib/yt/video_audit/brand_anchoring.rb, line 7 def initialize(options = {}) super @brand = options[:brand] end
Public Instance Methods
description()
click to toggle source
# File lib/yt/video_audit/brand_anchoring.rb, line 16 def description 'The number of videos with the brand name in the title' end
title()
click to toggle source
# File lib/yt/video_audit/brand_anchoring.rb, line 12 def title 'Brand Anchoring' end
Private Instance Methods
valid?(video)
click to toggle source
# File lib/yt/video_audit/brand_anchoring.rb, line 22 def valid?(video) !!video.title[/#{@brand}/i] end