Class: ExportMapServices
- Inherits:
-
Object
- Object
- ExportMapServices
- Defined in:
- lib/export_map_services.rb
Instance Method Summary collapse
Instance Method Details
#call(env) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/export_map_services.rb', line 5 def call(env) request = Rack::Request.new(env) begin response = Rack::Response.new(export_map_services(request), 200, headers) response = maybe_cache_response(response) rescue Exception => e response = Rack::Response.new({ :error => e. }.to_json, 500, headers) end response.to_a end |