Sha256: a8cbd11944f40be55d5ffc2a880b61b3bf690123083f2087252228b1eafb71d8

Contents?: true

Size: 727 Bytes

Versions: 14

Compression:

Stored size: 727 Bytes

Contents

module RequestLogAnalyzer::Filter

  autoload :Field,     'request_log_analyzer/filter/field'
  autoload :Timespan,  'request_log_analyzer/filter/timespan'
  autoload :Anonymize, 'request_log_analyzer/filter/anonymize'

  # Base filter class used to filter input requests.
  # All filters should interit from this base.
  class Base

    attr_reader :file_format, :options

    # Initializer
    # <tt>format</tt> The file format
    # <tt>options</tt> Are passed to the filters.
    def initialize(format, options = {})
      @file_format = format
      @options     = options
    end

    # Return the request if the request should be kept.
    # Return nil otherwise.
    def filter(request)
      request
    end
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
request-log-analyzer-1.10.1 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.10.0 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.9.10 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.9.9 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.9.8 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.9.7 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.9.6 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.9.5 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.9.4 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.9.3 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.9.2 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.9.1 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.9.0 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.8.1 lib/request_log_analyzer/filter.rb