def filter(request)
      if @after && @before && request.timestamp && request.timestamp <= @before && @after <= request.timestamp
        return request
      elsif @after && @before.nil? && request.timestamp && @after <= request.timestamp
        return request
      elsif @before && @after.nil? && request.timestamp && request.timestamp <= @before
        return request
      end

      nil
    end
def filter(request)
      if @after && @before && request.timestamp && request.timestamp <= @before && @after <= request.timestamp
        return request
      elsif @after && @before.nil? && request.timestamp && @after <= request.timestamp
        return request
      elsif @before && @after.nil? && request.timestamp && request.timestamp <= @before
        return request
      end

      nil
    end
Returns request if:
   * @after <= request.timestamp <= @before
   * @after <= request.timestamp
   * request.timestamp <= @before
 Returns nil otherwise
 <tt>request</tt> Request object.