Sha256: 215898c3290f8cf5a86a244210f9c8f4db0692cafb63efa8131bb6ff917527c1
Contents?: true
Size: 470 Bytes
Versions: 1
Compression:
Stored size: 470 Bytes
Contents
module ChromedataService include HttpRestClient VEHICLE_BY_CHROMEDATA_URL = "#{BASE_URL}/UsedCarWS/UsedCarWS/UsedVehicle/Chrome".freeze 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.body), :map_fields) rescue => e [{ error: e.to_s }, 500] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blackbook_client-1.0.1 | lib/chromedata_service.rb |