module IpLocatorCn
Constants
- VERSION
Public Class Methods
copywrite_url()
click to toggle source
# File lib/ip_locator_cn.rb, line 15 def self.copywrite_url 'http://update.cz88.net/ip/copywrite.rar' end
data_path()
click to toggle source
embeded qqwry.dat
# File lib/ip_locator_cn.rb, line 6 def self.data_path File.expand_path('../../data/qqwry.dat', __FILE__) end
live_data_url()
click to toggle source
download url for qqwry.rar (uncracked)
# File lib/ip_locator_cn.rb, line 11 def self.live_data_url 'http://update.cz88.net/ip/qqwry.rar' end
resolve(ip, options={ dat_path: data_path })
click to toggle source
# File lib/ip_locator_cn.rb, line 19 def self.resolve(ip, options={ dat_path: data_path }) QQWry.new(options).resolve(ip) end