Sha256: 43a68fa232cd5b19d8ab1c0e0b282dc914003e6b36591020b7803fbacbbb8d6f

Contents?: true

Size: 679 Bytes

Versions: 7

Compression:

Stored size: 679 Bytes

Contents

module RequestLogAnalyzer
  module Filter
    # Base filter class used to filter input requests.
    # All filters should interit from this base.
    class Base
      
      include RequestLogAnalyzer::FileFormat::Awareness
      
      attr_reader :log_parser
      attr_reader :options
      
      # Initializer
      # <tt>format</tt> The file format
      # <tt>options</tt> Are passed to the filters.
      def initialize(format, options = {})
        @options    = options
        register_file_format(format)
      end
      
      def prepare
      end
      
      def filter(request)
        return nil unless request
        return request
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
wvanbergen-request-log-analyzer-1.0.1 lib/request_log_analyzer/filter/base.rb
wvanbergen-request-log-analyzer-1.0.2 lib/request_log_analyzer/filter/base.rb
wvanbergen-request-log-analyzer-1.0.3 lib/request_log_analyzer/filter/base.rb
wvanbergen-request-log-analyzer-1.0.4 lib/request_log_analyzer/filter/base.rb
request-log-analyzer-1.0.4 lib/request_log_analyzer/filter/base.rb
request-log-analyzer-1.0.2 lib/request_log_analyzer/filter/base.rb
request-log-analyzer-1.0.3 lib/request_log_analyzer/filter/base.rb