Class: GeoIP::Region
- Inherits:
-
Struct
- Object
- Struct
- GeoIP::Region
- Defined in:
- lib/geoip.rb
Instance Attribute Summary collapse
-
#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.
-
#ip ⇒ Object
Returns the value of attribute ip.
-
#region_code ⇒ Object
Returns the value of attribute region_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
#continent_code ⇒ Object
Returns the value of attribute continent_code
124 125 126 |
# File 'lib/geoip.rb', line 124 def continent_code @continent_code end |
#country_code2 ⇒ Object
Returns the value of attribute country_code2
124 125 126 |
# File 'lib/geoip.rb', line 124 def country_code2 @country_code2 end |
#country_code3 ⇒ Object
Returns the value of attribute country_code3
124 125 126 |
# File 'lib/geoip.rb', line 124 def country_code3 @country_code3 end |
#country_name ⇒ Object
Returns the value of attribute country_name
124 125 126 |
# File 'lib/geoip.rb', line 124 def country_name @country_name end |
#ip ⇒ Object
Returns the value of attribute ip
124 125 126 |
# File 'lib/geoip.rb', line 124 def ip @ip end |
#region_code ⇒ Object
Returns the value of attribute region_code
124 125 126 |
# File 'lib/geoip.rb', line 124 def region_code @region_code end |
#region_name ⇒ Object
Returns the value of attribute region_name
124 125 126 |
# File 'lib/geoip.rb', line 124 def region_name @region_name end |
#request ⇒ Object
Returns the value of attribute request
124 125 126 |
# File 'lib/geoip.rb', line 124 def request @request end |
#timezone ⇒ Object
Returns the value of attribute timezone
124 125 126 |
# File 'lib/geoip.rb', line 124 def timezone @timezone end |
Instance Method Details
#to_hash ⇒ Object
127 128 129 |
# File 'lib/geoip.rb', line 127 def to_hash Hash[each_pair.to_a] end |