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



19
20
21
# File 'lib/geocoder/models/base.rb', line 19

def geocoded_by
  fail
end

#geocoder_optionsObject



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

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

#reverse_geocoded_byObject



23
24
25
# File 'lib/geocoder/models/base.rb', line 23

def reverse_geocoded_by
  fail
end