Sha256: e1d5879f513ac64ebd1d6c8335f00ac1d629e7e39dcb680004c48ca2b5921e94

Contents?: true

Size: 307 Bytes

Versions: 2

Compression:

Stored size: 307 Bytes

Contents

module Fuprint
  class Request

    include ::Fuprint::Helpers

    def initialize(app)
      @app = app
    end

    # Thread safe call
    def call(env)
      dup.call!(env)
    end

    # Receive the request and print info
    def call!(env)
      print_info(env)
      @app.call(env)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fuprint-0.2.0 lib/fuprint/request.rb
fuprint-0.1.4 lib/fuprint/request.rb