Class: IPLocation::Info

Inherits:
Object
  • Object
show all
Defined in:
lib/ip-location.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#areaObject

Returns the value of attribute area.



6
7
8
# File 'lib/ip-location.rb', line 6

def area
  @area
end

#cityObject

Returns the value of attribute city.



6
7
8
# File 'lib/ip-location.rb', line 6

def city
  @city
end

#countryObject

Returns the value of attribute country.



6
7
8
# File 'lib/ip-location.rb', line 6

def country
  @country
end

#ispObject

Returns the value of attribute isp.



6
7
8
# File 'lib/ip-location.rb', line 6

def isp
  @isp
end

#regionObject

Returns the value of attribute region.



6
7
8
# File 'lib/ip-location.rb', line 6

def region
  @region
end

Instance Method Details

#fullnameObject



8
9
10
# File 'lib/ip-location.rb', line 8

def fullname
  [self.country, self.region, self.city].join("")
end