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
-
.endpoints ⇒ Object
Return a default array of end points if none are specified.
-
.licence_key ⇒ Object
Licence key for accessing the maxmind service.
Class Method Summary collapse
-
.logger ⇒ Object
Return a logger object for this MaxMind interaction.
Class Attribute Details
.endpoints ⇒ Object
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_key ⇒ Object
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
.logger ⇒ Object
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 |