Class: Geocoder::Result::IpAddressLabs

Inherits:
Base
  • Object
show all
Defined in:
lib/geocoder/results/ip_address_labs.rb

Instance Attribute Summary

Attributes inherited from Base

#cache_hit, #data

Instance Method Summary collapse

Methods inherited from Base

#address, #country, #country_code, #initialize, #province, #province_code, #state, #state_code

Constructor Details

This class inherits a constructor from Geocoder::Result::Base

Instance Method Details

#area_codeObject



58
59
60
# File 'lib/geocoder/results/ip_address_labs.rb', line 58

def area_code
  @data["area_code"]
end

#cityObject



46
47
48
# File 'lib/geocoder/results/ip_address_labs.rb', line 46

def city
  @data["city"]
end

#continent_codeObject



10
11
12
# File 'lib/geocoder/results/ip_address_labs.rb', line 10

def continent_code
  @data["continent_code"]
end

#continent_nameObject



14
15
16
# File 'lib/geocoder/results/ip_address_labs.rb', line 14

def continent_name
  @data["continent_name"]
end

#coordinatesObject



6
7
8
# File 'lib/geocoder/results/ip_address_labs.rb', line 6

def coordinates
  [ @data["latitude"], @data["longitude"] ]
end

#country_code_fips10_4Object



30
31
32
# File 'lib/geocoder/results/ip_address_labs.rb', line 30

def country_code_fips10_4
  @data["country_code_fips10-4"]
end

#country_code_iso3166alpha2Object



18
19
20
# File 'lib/geocoder/results/ip_address_labs.rb', line 18

def country_code_iso3166alpha2
  @data["country_code_iso3166alpha2"]
end

#country_code_iso3166alpha3Object



22
23
24
# File 'lib/geocoder/results/ip_address_labs.rb', line 22

def country_code_iso3166alpha3
  @data["country_code_iso3166alpha3"]
end

#country_code_iso3166numericObject



26
27
28
# File 'lib/geocoder/results/ip_address_labs.rb', line 26

def country_code_iso3166numeric
  @data["country_code_iso3166numeric"]
end

#country_nameObject



34
35
36
# File 'lib/geocoder/results/ip_address_labs.rb', line 34

def country_name
  @data["country_name"]
end

#ispObject



70
71
72
# File 'lib/geocoder/results/ip_address_labs.rb', line 70

def isp
  @data["isp"]
end

#latitudeObject



62
63
64
# File 'lib/geocoder/results/ip_address_labs.rb', line 62

def latitude
  @data["latitude"]
end

#longitudeObject



66
67
68
# File 'lib/geocoder/results/ip_address_labs.rb', line 66

def longitude
  @data["longitude"]
end

#metro_codeObject



54
55
56
# File 'lib/geocoder/results/ip_address_labs.rb', line 54

def metro_code
  @data["metro_code"]
end

#organizationObject



74
75
76
# File 'lib/geocoder/results/ip_address_labs.rb', line 74

def organization
  @data["organization"]
end

#postal_codeObject



50
51
52
# File 'lib/geocoder/results/ip_address_labs.rb', line 50

def postal_code
  @data["postal_code"]
end

#region_codeObject



38
39
40
# File 'lib/geocoder/results/ip_address_labs.rb', line 38

def region_code
  @data["region_code"]
end

#region_nameObject



42
43
44
# File 'lib/geocoder/results/ip_address_labs.rb', line 42

def region_name
  @data["region_name"]
end