demarches-normaliennes/app/lib/api_adresse/address_adapter.rb
2018-10-16 09:33:16 +02:00

17 lines
280 B
Ruby

class ApiAdresse::AddressAdapter < ApiAdresse::Adapter
def initialize(address)
super(address, 5, [])
end
def get_suggestions
handle_result
end
private
def process_features
features.map do |feature|
feature['properties']['label']
end
end
end