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::CC2Country
IP2Country::CC2Country
Reference
Object
Defined in:
ip2country/cc2country.cr
Constant Summary
CACHE_DIR
=
IP2Country
::
CACHE_DIR
+
"/country"
Constructors
.new
Class Method Summary
.cache_update
: Bool
Instance Method Summary
#lookup
(cc : String, lang : String) : String
#lookup_all
(cc : String) : Hash(String, String)
Constructor Detail
def self.
new
#
[
View source
]
Class Method Detail
def self.
cache_update
: Bool
#
[
View source
]
Instance Method Detail
def
lookup
(cc : String, lang : String) : String
#
[
View source
]
def
lookup_all
(cc : String) : Hash(String, String)
#
[
View source
]