Sha256: 6395f050ba47272e5578243cf0b4b65c6f9da9bdb52d8e4ce2bd851bb24df462

Contents?: true

Size: 253 Bytes

Versions: 4

Compression:

Stored size: 253 Bytes

Contents

module UvcMapper
  def self.map_fields(response)
    return {} unless response&.dig('used_vehicles', 'used_vehicle_list')
    vehicle_range = response['used_vehicles']['used_vehicle_list'][0]

    return {
      uvc: vehicle_range['uvc']
    }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blackbook_client-1.0.1 lib/mappers/uvc_mapper.rb
blackbook_client-1.0.0 lib/mappers/uvc_mapper.rb
blackbook_client-0.2.1 lib/mappers/uvc_mapper.rb
blackbook_client-0.2.0 lib/mappers/uvc_mapper.rb