Module: GeoipWhoisAsnCountry
- Defined in:
- lib/geoip_whois_asn_country.rb,
lib/geoip_whois_asn_country/version.rb
Defined Under Namespace
Classes: GeoIpCountry
Constant Summary collapse
- VERSION =
"0.2.2"
Class Method Summary collapse
Class Method Details
.configure(&block) ⇒ Object
11 12 13 14 15 |
# File 'lib/geoip_whois_asn_country.rb', line 11 def self.configure(&block) block.call(GeoIpCountry) Singleton.__init__(GeoIpCountry) nil end |
.lookup(ip_address) ⇒ Object
7 8 9 |
# File 'lib/geoip_whois_asn_country.rb', line 7 def self.lookup(ip_address) GeoIpCountry._lookup(ip_address) end |