Class: JaeheeGeo::Geoip

Inherits:
Autometal::Geoip
  • Object
show all
Defined in:
lib/jaeheegeo/geoip.rb

Instance Method Summary collapse

Instance Method Details

#as_json(options = {}) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/jaeheegeo/geoip.rb', line 4

def as_json(options = {})
  {
    :country => self.country,
    :county => self.county,
    :city => self.city,
    :lat => self.lat,
    :lng => self.lng,
    :version => self.version
  }.as_json(options)
end