lib/chromedata_service.rb in blackbook_client-0.1.5 vs lib/chromedata_service.rb in blackbook_client-0.1.6
- old
+ new
@@ -6,10 +6,10 @@
def range_by_chromedata_id(chrome_id, query_params ={})
url = "#{VEHICLE_BY_CHROMEDATA_URL}/#{chrome_id}"
begin
response = HTTParty.get(url, headers: headers, query: query_params)
- process_response(JSON.parse(response))
+ process_response(JSON.parse(response), :map_fields)
rescue => e
[{ error: e.to_s }, 500]
end
end
end