Class: FnordMetric::App
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- FnordMetric::App
- Includes:
- AppHelpers
- Defined in:
- lib/fnordmetric/web/app.rb
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ App
constructor
A new instance of App.
Methods included from AppHelpers
#current_namespace, #h, #namespaces, #parse_param, #parse_params, #path_prefix, #track_event
Constructor Details
#initialize(opts = {}) ⇒ App
Returns a new instance of App.
30 31 32 33 34 35 36 37 |
# File 'lib/fnordmetric/web/app.rb', line 30 def initialize(opts = {}) @opts = FnordMetric.(opts) @namespaces = FnordMetric.namespaces @redis = Redis.connect(:url => @opts[:redis_url]) super(nil) end |