Class: Nextday::JSON

Inherits:
Object
  • Object
show all
Defined in:
lib/nextday/json.rb

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



7
8
9
# File 'lib/nextday/json.rb', line 7

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