Method: GeoMagic::Remote::ClassMethods#my_location

Defined in:
lib/geo_magic/remote.rb

#my_location(mode = :location) ⇒ Object



27
28
29
# File 'lib/geo_magic/remote.rb', line 27

def my_location mode = :location
  create_location HTTParty.get('http://freegeoip.net/json/')
end