Class: Rack::ExvoWarez
- Inherits:
-
Object
- Object
- Rack::ExvoWarez
- Defined in:
- lib/exvo_warez.rb,
lib/rack/exvo/stats.rb
Defined Under Namespace
Classes: Stats
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ ExvoWarez
constructor
A new instance of ExvoWarez.
Constructor Details
#initialize(app) ⇒ ExvoWarez
Returns a new instance of ExvoWarez.
6 7 8 9 |
# File 'lib/exvo_warez.rb', line 6 def initialize(app) @app = app apply_stats if env == "production" && ExvoAuth::Config.client_id end |
Instance Method Details
#call(env) ⇒ Object
11 12 13 |
# File 'lib/exvo_warez.rb', line 11 def call(env) @app.call(env) end |