Module: Geocoder::Model::Base

Included in:
ActiveRecord, MongoMapper, Mongoid
Defined in:
lib/geocoder/models/base.rb

Instance Method Summary collapse

Instance Method Details

#geocoded_byObject


21
22
23
# File 'lib/geocoder/models/base.rb', line 21

def geocoded_by
  fail
end

#geocoder_optionsObject


11
12
13
14
15
16
17
18
19
# File 'lib/geocoder/models/base.rb', line 11

def geocoder_options
  if defined?(@geocoder_options)
    @geocoder_options
  elsif superclass.respond_to?(:geocoder_options)
    superclass.geocoder_options || { }
  else
    { }
  end
end

#reverse_geocoded_byObject


25
26
27
# File 'lib/geocoder/models/base.rb', line 25

def reverse_geocoded_by
  fail
end