module MaxMindDB

Constants

DEFAULT_FILE_READER

The default reader for MaxMindDB files. Reads the database into memory. This creates a higher memory overhead, but faster lookup times.

LOW_MEMORY_FILE_READER

A low memory file reader for MaxMindDB files. Avoids reading the database into memory. Has a lower memory footprint but slower lookup times.

VERSION

Public Class Methods

new(path, file_reader=DEFAULT_FILE_READER) click to toggle source
# File lib/maxminddb.rb, line 16
def self.new(path, file_reader=DEFAULT_FILE_READER)
  Client.new(path, file_reader)
end