Sha256: 761b890d40c9c6f639c090a2c4d528cc3281f964716ad790e80227010eda7928

Contents?: true

Size: 774 Bytes

Versions: 17

Compression:

Stored size: 774 Bytes

Contents

module RequestLogAnalyzer::Filter

  # Filter class loader using const_missing
  # This function will automatically load the class file based on the name of the class
  def self.const_missing(const)
    RequestLogAnalyzer::load_default_class_file(self, const)
  end

  # 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

17 entries across 17 versions & 2 rubygems

Version Path
request-log-analyzer-1.8.0 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.7.0 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.6.4 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.6.3 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.6.2 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.6.1 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.6.0 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.5.4 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.5.3 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.5.2 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.5.1 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.5.0 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.4.2 lib/request_log_analyzer/filter.rb
ngmoco-request-log-analyzer-1.4.2 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.4.1 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.4.0.1 lib/request_log_analyzer/filter.rb
request-log-analyzer-1.4.0 lib/request_log_analyzer/filter.rb