Module: SimpleJSON::Response

Defined in:
lib/simple_json_helpers.rb

Overview

///////////////////////////////////////////////////////////////////////////////////////

Author

lp ([email protected])

Copyright

2009 Louis-Philippe Perron - Released under the terms of the MIT license

:title:SimpleJSON::Response

Class Method Summary collapse

Class Method Details

.generate(data) ⇒ Object



22
23
24
# File 'lib/simple_json_helpers.rb', line 22

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