Sha256: ee2bf8cf9ce8294dd6d80efd57e55eeddf56fce9dd241377c6c298f32a320765

Contents?: true

Size: 441 Bytes

Versions: 6

Compression:

Stored size: 441 Bytes

Contents

module RequestLogAnalyzer::Aggregator

  class Echo < Base
    
    def prepare
      @warnings = ""
    end
    
    def aggregate(request)
      puts "\nRequest: " + request.inspect
    end
    
    def warning(type, message, lineno)
      @warnings << "WARNING #{type.inspect} on line #{lineno}: #{message}\n"
    end
    
    def report(output)
      output.title("Warnings during parsing")
      output.puts @warnings
    end

  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
wvanbergen-request-log-analyzer-1.1.0 lib/request_log_analyzer/aggregator/echo.rb
wvanbergen-request-log-analyzer-1.1.1 lib/request_log_analyzer/aggregator/echo.rb
wvanbergen-request-log-analyzer-1.1.2 lib/request_log_analyzer/aggregator/echo.rb
request-log-analyzer-1.1.1 lib/request_log_analyzer/aggregator/echo.rb
request-log-analyzer-1.1.2 lib/request_log_analyzer/aggregator/echo.rb
request-log-analyzer-1.1.0 lib/request_log_analyzer/aggregator/echo.rb