class MaxMindDB::Reader
Defined in:
maxminddb/reader.crConstructors
- .new(db_path : String, cache_max_size : Int32 | Nil = nil)
- .new(db : Bytes | IO::Memory, cache_max_size : Int32 | Nil = nil)
Instance Method Summary
- #get(address : String | Int) : Any
- #get(address : IPAddress) : Any
- #get_with_prefix_length(address : String | Int) : Tuple(Any, Int32)
- #get_with_prefix_length(address : IPAddress) : Tuple(Any, Int32)
-
#inspect(io : IO)
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
- #metadata : MaxMindDB::Metadata
Instance methods inherited from class Reference
==(other : MaxMindDB::Any)
==
Instance methods inherited from class Object
===(other : MaxMindDB::Any)
===
Constructor Detail
Instance Method Detail
def inspect(io : IO)
#
Description copied from class Reference
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>