Module: MaxMind

Defined in:
lib/max_mind.rb,
lib/max_mind/lookup.rb,
lib/max_mind/enquiry.rb

Defined Under Namespace

Classes: ConnectionError, Enquiry, Error, Lookup

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.endpointsObject

 Return a default array of end points if none are specified.



23
24
25
# File 'lib/max_mind.rb', line 23

def endpoints
  @endpoints
end

.licence_keyObject

Licence key for accessing the maxmind service. A trial key  can be requested from www.maxmind.com/app/ccv2r_signup



20
21
22
# File 'lib/max_mind.rb', line 20

def licence_key
  @licence_key
end

Class Method Details

.loggerObject

Return a logger object for this MaxMind interaction



31
32
33
# File 'lib/max_mind.rb', line 31

def logger
  @logger ||= Logger.new(STDOUT)
end