Class: Geocoder::Result::Telize

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

Instance Attribute Summary

Attributes inherited from Base

#cache_hit, #data

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#address, #coordinates, #initialize, #latitude, #longitude, #province, #province_code

Constructor Details

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

Class Method Details

.response_attributesObject


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

def self.response_attributes
  %w[timezone isp dma_code area_code ip asn continent_code country_code3]
end

Instance Method Details

#cityObject


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

def city
  @data['city']
end

#countryObject


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

def country
  @data['country']
end

#country_codeObject


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

def country_code
  @data['country_code']
end

#postal_codeObject


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

def postal_code
  @data['postal_code']
end

#stateObject


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

def state
  @data['region']
end

#state_codeObject


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

def state_code
  @data['region_code']
end