Class: RRDGrapher::RRDServer

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/rrd-grapher/rrd_server.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, opts = {}) ⇒ RRDServer

Returns a new instance of RRDServer.



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/rrd-grapher/rrd_server.rb', line 10

def initialize(app, opts = {})
  @app = app
  @root_path = opts.delete(:root_path)
  # use rrdcached ?
  # value must be the path to the unix socket
  @rrdcached = opts.delete(:rrdcached)
  
  unless opts.empty?
    raise "Unknown options: #{opts.inspect}"
  end
end