Class: Rack::ExvoWarez

Inherits:
Object
  • Object
show all
Defined in:
lib/exvo_warez.rb,
lib/rack/exvo/stats.rb

Defined Under Namespace

Classes: Stats

Instance Method Summary collapse

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