module Minfraud
This class holds global configuration parameters and provides a namespace for the gem's classes.
rubocop:disable Metrics/ModuleLength
Constants
- VERSION
The Gem version.
Attributes
The MaxMind
account ID that is used for authorization.
@return [Integer, nil]
@!visibility private
Enable client side validation. This is disabled by default.
@return [Boolean, nil]
The host to use when connecting to the web service.
@return [String, nil]
The MaxMind
license key that is used for authorization.
@return [String, nil]
The MaxMind
account ID that is used for authorization.
@deprecated Use {::account_id} instead. This will be removed in the next
major version.
@return [Integer, nil]
Public Class Methods
The current Minfraud
configuration.
@deprecated This will be removed in the next major version.
@return [Hash]
# File lib/minfraud.rb, line 82 def configuration { user_id: @user_id, license_key: @license_key } end
Yield self to accept configuration settings.
@yield [self]
# File lib/minfraud.rb, line 70 def configure yield self config = Minfraud::HTTPService.configuration @connection = Faraday.new(config[:server], {}, &config[:middleware]) end