Class: Ip2Location::Location

Inherits:
Struct
  • Object
show all
Defined in:
lib/ip2location/request.rb

Instance Attribute Summary collapse

Instance Attribute Details

#cityObject

Returns the value of attribute city

Returns:

  • (Object)

    the current value of city



2
3
4
# File 'lib/ip2location/request.rb', line 2

def city
  @city
end

#countryObject

Returns the value of attribute country

Returns:

  • (Object)

    the current value of country



2
3
4
# File 'lib/ip2location/request.rb', line 2

def country
  @country
end

#country_codeObject

Returns the value of attribute country_code

Returns:

  • (Object)

    the current value of country_code



2
3
4
# File 'lib/ip2location/request.rb', line 2

def country_code
  @country_code
end

#ipObject

Returns the value of attribute ip

Returns:

  • (Object)

    the current value of ip



2
3
4
# File 'lib/ip2location/request.rb', line 2

def ip
  @ip
end

#latitudeObject

Returns the value of attribute latitude

Returns:

  • (Object)

    the current value of latitude



2
3
4
# File 'lib/ip2location/request.rb', line 2

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude

Returns:

  • (Object)

    the current value of longitude



2
3
4
# File 'lib/ip2location/request.rb', line 2

def longitude
  @longitude
end

#regionObject

Returns the value of attribute region

Returns:

  • (Object)

    the current value of region



2
3
4
# File 'lib/ip2location/request.rb', line 2

def region
  @region
end