Class: Panopticon::APIServer

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/panopticon/api.rb

Constant Summary collapse

DEFAULT_PORT =
8080

Class Method Summary collapse

Class Method Details

.run!(arg = {}) ⇒ Object



14
15
16
17
18
19
20
21
22
# File 'lib/panopticon/api.rb', line 14

def self.run! arg={}
  @arg = arg

  @port = arg[:port] || DEFAULT_PORT
  set :port, @port

  @@wlan_control = Panopticon::WlanControl.new(arg)
  super
end