def ads_with_direct_url(direct_url)
      return enum_for(:ads_with_direct_url,direct_url) unless block_given?

      comparitor = if direct_url.kind_of?(Regexp)
                     lambda { |ad| ad.direct_url =~ direct_url }
                   else
                     lambda { |ad| ad.direct_url == direct_url }
                   end

      return ads_with do |ad|
        if comparitor.call(ad)
          yield ad

          true
        end
      end
    end
def ads_with_direct_url(direct_url)
      return enum_for(:ads_with_direct_url,direct_url) unless block_given?

      comparitor = if direct_url.kind_of?(Regexp)
                     lambda { |ad| ad.direct_url =~ direct_url }
                   else
                     lambda { |ad| ad.direct_url == direct_url }
                   end

      return ads_with do |ad|
        if comparitor.call(ad)
          yield ad

          true
        end
      end
    end
Selects the ads with the matching direct URL.

 @param [String, Regexp] direct_url
   The direct URL to search for.

 @yield [ad]
   Each matching ad will be passed to the given block.

 @yieldparam [SponsoredAd] ad
   A sponsored ad with the matching direct URL.

 @return [Array, Enumerator]
   The sponsored ads with the matching URL. If no block is given,
   an Enumerator object will be returned.

 @example
   sponsored.ads_with_direct_url(/\.com/)
   # => SponsoredLinks