Class: Spassky::Server::App
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Spassky::Server::App
- Defined in:
- lib/spassky/server/app.rb
Instance Method Summary collapse
- #get_device_identifier ⇒ Object
-
#initialize(device_list = DeviceList.new) ⇒ App
constructor
A new instance of App.
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_identifier ⇒ Object
27 28 29 |
# File 'lib/spassky/server/app.rb', line 27 def get_device_identifier SingletonDeviceDatabase.instance.device_identifier(request.user_agent) end |