lib/dynamodb_manager.rb in dynamodb_geo-0.2.0 vs lib/dynamodb_manager.rb in dynamodb_geo-0.2.1
- old
+ new
@@ -77,20 +77,22 @@
zip = item[@geojson]['zip']
area_code = item[@geojson]['area_code']
phone = item[@geojson]['phone']
name = item[@geojson]['name']
geohash = item[@geohash_key]
+ uuid = item[@range_key]
all_stores << Store.new(
latitude: latitude,
longitude: longitude,
address: address,
city: city,
state: state,
zip: zip,
area_code: area_code,
phone: phone,
name: name,
- geohash: geohash
+ geohash: geohash,
+ uuid: uuid
)
end
break if all_stores.length >= max_item_return
end