From 3b4296817f0328852ba4619e420ccd7d12d3eca9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20C=2E=20Mu=CC=88ller?= <jcmuller@gmail.com> Date: Tue, 15 Nov 2016 13:09:02 -0500 Subject: [PATCH] There's an attribute accessor on data --- lib/geocoder/results/mapbox.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/geocoder/results/mapbox.rb b/lib/geocoder/results/mapbox.rb index e4b71b9e..c43d4f89 100644 --- a/lib/geocoder/results/mapbox.rb +++ b/lib/geocoder/results/mapbox.rb @@ -4,15 +4,15 @@ module Geocoder::Result class Mapbox < Base def coordinates - @data["geometry"]["coordinates"].reverse.map(&:to_f) + data["geometry"]["coordinates"].reverse.map(&:to_f) end def place_name - @data['text'] + data['text'] end def street - @data['properties']['address'] + data['properties']['address'] end def city -- GitLab