Class: Spassky::Server::App

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/spassky/server/app.rb

Instance Method Summary collapse

Constructor Details

#initialize(device_list = DeviceList.new) ⇒ App

Returns a new instance of App.



10
11
12
13
# File 'lib/spassky/server/app.rb', line 10

def initialize(device_list=DeviceList.new)
  @device_list = device_list
  super()
end

Instance Method Details

#get_device_identifierObject



27
28
29
# File 'lib/spassky/server/app.rb', line 27

def get_device_identifier
  SingletonDeviceDatabase.instance.device_identifier(request.user_agent)
end