Sha256: f150add795dacaaf55b7a4a45dd7a724535201a80f7374cef916d5a08b1afe58

Contents?: true

Size: 435 Bytes

Versions: 3

Compression:

Stored size: 435 Bytes

Contents

module Sniffles
  module Sniffers
    class Gumgum
      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? /cdn\.gumgum\.com/
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sniffles-0.1.5 lib/sniffles/sniffers/advertising/gumgum.rb
sniffles-0.1.4 lib/sniffles/sniffers/advertising/gumgum.rb
sniffles-0.1.3 lib/sniffles/sniffers/advertising/gumgum.rb