module Yt module VideoAudit class Base def initialize(options = {}) @videos = options[:videos] end # @return [Fixnum] number of all given videos. def total_count @videos.count end # @return [Fixnum] number of videos satisfy given condition. def valid_count @videos.count {|video| valid? video} end end end end