Sha256: cee443071f0eee26394286063cc8c6f05af42f53c53d2fecdaebf18da6ce1c88

Contents?: true

Size: 445 Bytes

Versions: 4

Compression:

Stored size: 445 Bytes

Contents

module Sniffles
  module Sniffers
    class Thedeck
      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? /connect\.decknetwork\.net/
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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