Class: Ip2Location::Location
- Inherits:
-
Struct
- Object
- Struct
- Ip2Location::Location
- Defined in:
- lib/ip2location/request.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#country_code ⇒ Object
Returns the value of attribute country_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.
-
#region ⇒ Object
Returns the value of attribute region.
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city
2 3 4 |
# File 'lib/ip2location/request.rb', line 2 def city @city end |
#country ⇒ Object
Returns the value of attribute country
2 3 4 |
# File 'lib/ip2location/request.rb', line 2 def country @country end |
#country_code ⇒ Object
Returns the value of attribute country_code
2 3 4 |
# File 'lib/ip2location/request.rb', line 2 def country_code @country_code end |
#ip ⇒ Object
Returns the value of attribute ip
2 3 4 |
# File 'lib/ip2location/request.rb', line 2 def ip @ip end |
#latitude ⇒ Object
Returns the value of attribute latitude
2 3 4 |
# File 'lib/ip2location/request.rb', line 2 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude
2 3 4 |
# File 'lib/ip2location/request.rb', line 2 def longitude @longitude end |
#region ⇒ Object
Returns the value of attribute region
2 3 4 |
# File 'lib/ip2location/request.rb', line 2 def region @region end |