Class: IPLocation::Info
- Inherits:
-
Object
- Object
- IPLocation::Info
- Defined in:
- lib/ip-location.rb
Instance Attribute Summary collapse
-
#area ⇒ Object
Returns the value of attribute area.
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#isp ⇒ Object
Returns the value of attribute isp.
-
#region ⇒ Object
Returns the value of attribute region.
Instance Method Summary collapse
Instance Attribute Details
#area ⇒ Object
Returns the value of attribute area.
6 7 8 |
# File 'lib/ip-location.rb', line 6 def area @area end |
#city ⇒ Object
Returns the value of attribute city.
6 7 8 |
# File 'lib/ip-location.rb', line 6 def city @city end |
#country ⇒ Object
Returns the value of attribute country.
6 7 8 |
# File 'lib/ip-location.rb', line 6 def country @country end |
#isp ⇒ Object
Returns the value of attribute isp.
6 7 8 |
# File 'lib/ip-location.rb', line 6 def isp @isp end |
#region ⇒ Object
Returns the value of attribute region.
6 7 8 |
# File 'lib/ip-location.rb', line 6 def region @region end |
Instance Method Details
#fullname ⇒ Object
8 9 10 |
# File 'lib/ip-location.rb', line 8 def fullname [self.country, self.region, self.city].join("") end |