struct MaxMindDB::Metadata
Defined in:
maxminddb/metadata.crInstance Method Summary
-
#binary_format_major_version : Int32
The major version number for the database's binary format.
-
#binary_format_minor_version : Int32
The minor version number for the database's binary format.
-
#build_epoch : Time
The Unix epoch for the build time of the database.
-
#database_type : String
A string identifying the database type.
-
#description : Hash(String, String)
A hash from locales to text descriptions of the database.
-
#ip_version : Int32
The IP version of the data in a database.
-
#languages : Array(String)
An array of locale codes supported by the database.
-
#node_byte_size : Int32
The size of a node in bytes.
-
#node_count : Int32
The number of nodes in the search tree.
-
#record_size : Int32
The bit size of a record in the search tree.
-
#search_tree_size : Int32
The size of the search tree in bytes.
-
#version : String
MaxMind DB binary format version.
Instance methods inherited from struct Value
==(other : MaxMindDB::Any)
==
Instance methods inherited from class Object
===(other : MaxMindDB::Any)
===
Instance Method Detail
The major version number for the database's binary format.
The minor version number for the database's binary format.
A string identifying the database type.
metadata.database_type # => "GeoIP2-City"
A hash from locales to text descriptions of the database.
The IP version of the data in a database.
A value of 4
means the database only supports IPv4.
A database with a value of 6
may support both IPv4 and IPv6 lookups.
An array of locale codes supported by the database.
metadata.languages # => ["en", "de", "ru"]