module GeoIP

Constants

GEOIP_BASE
GeoIPOptions
VERSION

Public Class Methods

addr_to_num(addr) click to toggle source
# File lib/ffi-geoip.rb, line 459
def addr_to_num(addr)
  check_type(addr, String)
  FFIGeoIP.GeoIP_addr_to_num(addr)
end
num_to_addr(num) click to toggle source
# File lib/ffi-geoip.rb, line 464
def num_to_addr(num)
  check_type(num, Fixnum, Bignum)
  FFIGeoIP.GeoIP_num_to_addr(num)
end
version() click to toggle source
# File lib/ffi-geoip.rb, line 455
def version
  @version ||= FFIGeoIP.GeoIP_lib_version
end