Class: ZipCode
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ZipCode
- Defined in:
- lib/earth/locality/zip_code.rb
Instance Method Summary collapse
- #country ⇒ Object
-
#latitude_longitude ⇒ Object
Used by LodgingProperty custom find to find properties near to a zip code.
Instance Method Details
#country ⇒ Object
20 21 22 |
# File 'lib/earth/locality/zip_code.rb', line 20 def country Country.united_states end |
#latitude_longitude ⇒ Object
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 |