Sha256: 482b8b60d509a9ff9e10b77acef18a6a65eae99f6978848e8feb8d911d6d8f1c

Contents?: true

Size: 475 Bytes

Versions: 1

Compression:

Stored size: 475 Bytes

Contents

module Rack
  module RedisAnalytics
    class Tracker

      def initialize(app)
        @app = Rack::Builder.new do
          map '/' do
            run Analytics.new(app)
          end

          if defined? Dashboard and RedisAnalytics.dashboard_endpoint
            map RedisAnalytics.dashboard_endpoint do
              run Dashboard.new
            end
          end
        end
      end

      def call(env)
        @app.call(env)
      end
      
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redis_analytics-0.1.0 lib/redis_analytics/tracker.rb