Sha256: a42de3a14329da2834408fd64fa74650a15af53849ac05c699904c69103ca0c1

Contents?: true

Size: 441 Bytes

Versions: 5

Compression:

Stored size: 441 Bytes

Contents

module Sniffles
  module Sniffers
    class Clicky
      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? /static\.getclicky\.com/
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sniffles-0.2.0 lib/sniffles/sniffers/analytics/clicky.rb
sniffles-0.1.5 lib/sniffles/sniffers/analytics/clicky.rb
sniffles-0.1.4 lib/sniffles/sniffers/analytics/clicky.rb
sniffles-0.1.3 lib/sniffles/sniffers/analytics/clicky.rb
sniffles-0.1.2 lib/sniffles/sniffers/analytics/clicky.rb