lib/access/geolocation.rb in access-2.0.24 vs lib/access/geolocation.rb in access-2.0.25

- old
+ new

@@ -1,8 +1,7 @@ module Access class Geolocation - attr_accessor :lat, :lon def self.search(options = {}) Access::Api.new.geolocation_search options end @@ -18,11 +17,10 @@ self.class.class_eval {attr_reader *values.keys } values.each do |attribute_name, attribute_value| self.instance_variable_set("@#{attribute_name}", attribute_value) end - @lat = @geolocation['lat'] - @lon = @geolocation['lon'] + @geolocation = Geolocation.new(@geolocation) if @geolocation end end end