class MaxMindDB::Result::Location

Attributes

raw[R]

Public Class Methods

new(raw) click to toggle source
# File lib/maxminddb/result/location.rb, line 4
def initialize(raw)
  @raw = raw || {}
end

Public Instance Methods

accuracy_radius() click to toggle source
# File lib/maxminddb/result/location.rb, line 24
def accuracy_radius
  raw['accuracy_radius']
end
latitude() click to toggle source
# File lib/maxminddb/result/location.rb, line 8
def latitude
  raw['latitude']
end
longitude() click to toggle source
# File lib/maxminddb/result/location.rb, line 12
def longitude
  raw['longitude']
end
metro_code() click to toggle source
# File lib/maxminddb/result/location.rb, line 16
def metro_code
  raw['metro_code']
end
time_zone() click to toggle source
# File lib/maxminddb/result/location.rb, line 20
def time_zone
  raw['time_zone']
end