Class: DeviceTracker::App
- Inherits:
-
Object
- Object
- DeviceTracker::App
- Defined in:
- lib/device_tracker/app.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize ⇒ App
constructor
A new instance of App.
Constructor Details
#initialize ⇒ App
Returns a new instance of App.
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/device_tracker/app.rb', line 6 def initialize @app = Rack::Builder.new do map('/heartbeats') { run HeartbeatController } map('/transactions') { run TransactionsController } map('/users') { run UsersController } map('/devices') { run DevicesController } map('/os') { run OSController } map('/') { run ApplicationController } end end |
Instance Method Details
#call(env) ⇒ Object
17 18 19 |
# File 'lib/device_tracker/app.rb', line 17 def call(env) @app.call(env) end |