Sha256: b29612eb54f5fcf9d6123fa0f970c4ad536192ecb821e9f4a9f2ebc5a4c0c5f0

Contents?: true

Size: 442 Bytes

Versions: 5

Compression:

Stored size: 442 Bytes

Contents

module Sniffles
  module Sniffers
    class Buysellads
      include Text
      
      attr_accessor :doc
      attr_reader :output
      
      def initialize(response_body)
        @output = {}        
        parse(response_body) && process_document
      end
      
      def process_document
        @output[:found] = found?
      end
      
      private
      def found?
        match? /s3\.buysellads\.com/
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sniffles-0.2.0 lib/sniffles/sniffers/advertising/buysellads.rb
sniffles-0.1.5 lib/sniffles/sniffers/advertising/buysellads.rb
sniffles-0.1.4 lib/sniffles/sniffers/advertising/buysellads.rb
sniffles-0.1.3 lib/sniffles/sniffers/advertising/buysellads.rb
sniffles-0.1.2 lib/sniffles/sniffers/advertising/buysellads.rb