Class: FnordMetric::App

Inherits:
Sinatra::Base
  • Object
show all
Includes:
AppHelpers
Defined in:
lib/fnordmetric/web/app.rb

Instance Method Summary collapse

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.options(opts)

  @namespaces = FnordMetric.namespaces
  @redis = Redis.connect(:url => @opts[:redis_url])

  super(nil)
end