Class: ZipCode

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/earth/locality/zip_code.rb

Instance Method Summary collapse

Instance Method Details

#countryObject



20
21
22
# File 'lib/earth/locality/zip_code.rb', line 20

def country
  Country.united_states
end

#latitude_longitudeObject

Used by LodgingProperty custom find to find properties near to a zip code



25
26
27
# File 'lib/earth/locality/zip_code.rb', line 25

def latitude_longitude
  [latitude, longitude]
end