From f8d5eeb247c42d71dc7d5f9191d47484c2e469be Mon Sep 17 00:00:00 2001
From: Alex Reisner <alex@alexreisner.com>
Date: Thu, 24 May 2018 13:20:14 -0600
Subject: [PATCH] Restore geoip2 result's #data method as public.

---
 lib/geocoder/results/geoip2.rb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/geocoder/results/geoip2.rb b/lib/geocoder/results/geoip2.rb
index cf0f758a..c7a1a913 100644
--- a/lib/geocoder/results/geoip2.rb
+++ b/lib/geocoder/results/geoip2.rb
@@ -62,6 +62,10 @@ module Geocoder
         @language ||= default_language
       end
 
+      def data
+        @data.to_hash
+      end
+
       private
 
       def default_language
-- 
GitLab