struct MaxMindDB::Metadata

Defined in:

maxminddb/metadata.cr

Instance Method Summary

Instance methods inherited from struct Value

==(other : MaxMindDB::Any) ==

Instance methods inherited from class Object

===(other : MaxMindDB::Any) ===

Instance Method Detail

def binary_format_major_version : Int32 #

The major version number for the database's binary format.


[View source]
def binary_format_minor_version : Int32 #

The minor version number for the database's binary format.


[View source]
def build_epoch : Time #

The Unix epoch for the build time of the database.


[View source]
def database_type : String #

A string identifying the database type.

metadata.database_type # => "GeoIP2-City"

[View source]
def description : Hash(String, String) #

A hash from locales to text descriptions of the database.


[View source]
def ip_version : Int32 #

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.


[View source]
def languages : Array(String) #

An array of locale codes supported by the database.

metadata.languages # => ["en", "de", "ru"]

[View source]
def node_byte_size : Int32 #

The size of a node in bytes.


[View source]
def node_count : Int32 #

The number of nodes in the search tree.


[View source]
def record_size : Int32 #

The bit size of a record in the search tree.


[View source]
def search_tree_size : Int32 #

The size of the search tree in bytes.


[View source]
def version : String #

MaxMind DB binary format version.

metadata.version # => "2.0"

[View source]