lib/geocoder/results/base.rb in geocoder-1.1.4 vs lib/geocoder/results/base.rb in geocoder-1.1.5

- old
+ new

@@ -1,11 +1,17 @@ module Geocoder module Result class Base - attr_accessor :data, :cache_hit + # data (hash) fetched from geocoding service + attr_accessor :data + + # true if result came from cache, false if from request to geocoding + # service; nil if cache is not configured + attr_accessor :cache_hit + ## - # Takes a hash of result data from a parsed Google result document. + # Takes a hash of data from a parsed geocoding service response. # def initialize(data) @data = data @cache_hit = nil end