Class: Geocoder::Result::IpAddressLabs
- Inherits:
-
Base
- Object
- Base
- Geocoder::Result::IpAddressLabs
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
Instance Method Details
#area_code ⇒ Object
58
59
60
|
# File 'lib/geocoder/results/ip_address_labs.rb', line 58
def area_code
@data["area_code"]
end
|
#city ⇒ Object
46
47
48
|
# File 'lib/geocoder/results/ip_address_labs.rb', line 46
def city
@data["city"]
end
|
#continent_code ⇒ Object
10
11
12
|
# File 'lib/geocoder/results/ip_address_labs.rb', line 10
def continent_code
@data["continent_code"]
end
|
#continent_name ⇒ Object
14
15
16
|
# File 'lib/geocoder/results/ip_address_labs.rb', line 14
def continent_name
@data["continent_name"]
end
|
#coordinates ⇒ Object
6
7
8
|
# File 'lib/geocoder/results/ip_address_labs.rb', line 6
def coordinates
[ @data["latitude"], @data["longitude"] ]
end
|
#country_code_fips10_4 ⇒ Object
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_iso3166alpha2 ⇒ Object
18
19
20
|
# File 'lib/geocoder/results/ip_address_labs.rb', line 18
def country_code_iso3166alpha2
@data["country_code_iso3166alpha2"]
end
|
#country_code_iso3166alpha3 ⇒ Object
22
23
24
|
# File 'lib/geocoder/results/ip_address_labs.rb', line 22
def country_code_iso3166alpha3
@data["country_code_iso3166alpha3"]
end
|
#country_code_iso3166numeric ⇒ Object
26
27
28
|
# File 'lib/geocoder/results/ip_address_labs.rb', line 26
def country_code_iso3166numeric
@data["country_code_iso3166numeric"]
end
|
#country_name ⇒ Object
34
35
36
|
# File 'lib/geocoder/results/ip_address_labs.rb', line 34
def country_name
@data["country_name"]
end
|
#isp ⇒ Object
70
71
72
|
# File 'lib/geocoder/results/ip_address_labs.rb', line 70
def isp
@data["isp"]
end
|
#latitude ⇒ Object
62
63
64
|
# File 'lib/geocoder/results/ip_address_labs.rb', line 62
def latitude
@data["latitude"]
end
|
#longitude ⇒ Object
66
67
68
|
# File 'lib/geocoder/results/ip_address_labs.rb', line 66
def longitude
@data["longitude"]
end
|
#metro_code ⇒ Object
54
55
56
|
# File 'lib/geocoder/results/ip_address_labs.rb', line 54
def metro_code
@data["metro_code"]
end
|
#organization ⇒ Object
74
75
76
|
# File 'lib/geocoder/results/ip_address_labs.rb', line 74
def organization
@data["organization"]
end
|
#postal_code ⇒ Object
50
51
52
|
# File 'lib/geocoder/results/ip_address_labs.rb', line 50
def postal_code
@data["postal_code"]
end
|
#region_code ⇒ Object
38
39
40
|
# File 'lib/geocoder/results/ip_address_labs.rb', line 38
def region_code
@data["region_code"]
end
|
#region_name ⇒ Object
42
43
44
|
# File 'lib/geocoder/results/ip_address_labs.rb', line 42
def region_name
@data["region_name"]
end
|