Class: GeoIP::City
- Inherits:
-
Struct
- Object
- Struct
- GeoIP::City
- Defined in:
- lib/geoip.rb
Instance Attribute Summary collapse
-
#area_code ⇒ Object
Returns the value of attribute area_code.
-
#city_name ⇒ Object
Returns the value of attribute city_name.
-
#continent_code ⇒ Object
Returns the value of attribute continent_code.
-
#country_code2 ⇒ Object
Returns the value of attribute country_code2.
-
#country_code3 ⇒ Object
Returns the value of attribute country_code3.
-
#country_name ⇒ Object
Returns the value of attribute country_name.
-
#dma_code ⇒ Object
Returns the value of attribute dma_code.
-
#ip ⇒ Object
Returns the value of attribute ip.
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
-
#postal_code ⇒ Object
Returns the value of attribute postal_code.
-
#region_name ⇒ Object
Returns the value of attribute region_name.
-
#request ⇒ Object
Returns the value of attribute request.
-
#timezone ⇒ Object
Returns the value of attribute timezone.
Instance Method Summary collapse
Instance Attribute Details
#area_code ⇒ Object
Returns the value of attribute area_code
115 116 117 |
# File 'lib/geoip.rb', line 115 def area_code @area_code end |
#city_name ⇒ Object
Returns the value of attribute city_name
115 116 117 |
# File 'lib/geoip.rb', line 115 def city_name @city_name end |
#continent_code ⇒ Object
Returns the value of attribute continent_code
115 116 117 |
# File 'lib/geoip.rb', line 115 def continent_code @continent_code end |
#country_code2 ⇒ Object
Returns the value of attribute country_code2
115 116 117 |
# File 'lib/geoip.rb', line 115 def country_code2 @country_code2 end |
#country_code3 ⇒ Object
Returns the value of attribute country_code3
115 116 117 |
# File 'lib/geoip.rb', line 115 def country_code3 @country_code3 end |
#country_name ⇒ Object
Returns the value of attribute country_name
115 116 117 |
# File 'lib/geoip.rb', line 115 def country_name @country_name end |
#dma_code ⇒ Object
Returns the value of attribute dma_code
115 116 117 |
# File 'lib/geoip.rb', line 115 def dma_code @dma_code end |
#ip ⇒ Object
Returns the value of attribute ip
115 116 117 |
# File 'lib/geoip.rb', line 115 def ip @ip end |
#latitude ⇒ Object
Returns the value of attribute latitude
115 116 117 |
# File 'lib/geoip.rb', line 115 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude
115 116 117 |
# File 'lib/geoip.rb', line 115 def longitude @longitude end |
#postal_code ⇒ Object
Returns the value of attribute postal_code
115 116 117 |
# File 'lib/geoip.rb', line 115 def postal_code @postal_code end |
#region_name ⇒ Object
Returns the value of attribute region_name
115 116 117 |
# File 'lib/geoip.rb', line 115 def region_name @region_name end |
#request ⇒ Object
Returns the value of attribute request
115 116 117 |
# File 'lib/geoip.rb', line 115 def request @request end |
#timezone ⇒ Object
Returns the value of attribute timezone
115 116 117 |
# File 'lib/geoip.rb', line 115 def timezone @timezone end |
Instance Method Details
#to_hash ⇒ Object
118 119 120 |
# File 'lib/geoip.rb', line 118 def to_hash Hash[each_pair.to_a] end |