Class: Device::Tracker::App
- Inherits:
-
Object
- Object
- Device::Tracker::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.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/device/tracker/app.rb', line 8 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
19 20 21 |
# File 'lib/device/tracker/app.rb', line 19 def call(env) @app.call(env) end |