Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
ip2country
v0.1.4
IP2Country
CC2Country
IP2CC
Registrar
IPAddr
Built with Crystal 1.9.2
2023-10-08 13:05:12 UTC
class
IP2Country::IP2CC
IP2Country::IP2CC
Reference
Object
Defined in:
ip2country/ip2cc.cr
Constant Summary
FILE_NAME
=
IP2Country
::
CACHE_DIR
+
"/conversion.dat"
Constructors
.new
Class Method Summary
.cache_update
: Bool
Instance Method Summary
#lookup
(addr : IPAddr) : String
Constructor Detail
def self.
new
#
[
View source
]
Class Method Detail
def self.
cache_update
: Bool
#
[
View source
]
Instance Method Detail
def
lookup
(addr :
IPAddr
) : String
#
[
View source
]