Class: Tent::Status

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/tent-status.rb,
lib/tent-status/app.rb,
lib/tent-status/models/user.rb,
lib/tent-status/sprockets/environment.rb

Defined Under Namespace

Modules: SprocketsEnvironment Classes: User

Instance Method Summary collapse

Instance Method Details

#json(data) ⇒ Object



111
112
113
# File 'lib/tent-status/app.rb', line 111

def json(data)
  [200, { 'Content-Type' => 'application/json' }, [data.to_json]]
end