Class: MiniCheck::VersionRackApp::JsonResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/mini_check/version_rack_app.rb

Class Method Summary collapse

Class Method Details

.render(hash) ⇒ Object



71
72
73
# File 'lib/mini_check/version_rack_app.rb', line 71

def self.render hash
  [200, {'Content-Type' => 'application/json'}, [hash.to_json]]
end