Sha256: 348fb06d90a61dc9df31900801ffddc15340be6334f28888a71452964286a31b
Contents?: true
Size: 482 Bytes
Versions: 4
Compression:
Stored size: 482 Bytes
Contents
module RangeValuesMapper def self.map_fields(response) return {} unless response&.dig('used_vehicles', 'used_vehicle_list') vehicle_range = response['used_vehicles']['used_vehicle_list'][0] return { range: { xclean: vehicle_range['adjusted_whole_xclean'], clean: vehicle_range['adjusted_whole_clean'], average: vehicle_range['adjusted_whole_avg'], rough: vehicle_range['adjusted_whole_rough'] } } end end
Version data entries
4 entries across 4 versions & 1 rubygems