Module: Minfraud

Defined in:
lib/minfraud.rb,
lib/minfraud/enum.rb,
lib/minfraud/errors.rb,
lib/minfraud/version.rb,
lib/minfraud/resolver.rb,
lib/minfraud/assessments.rb,
lib/minfraud/http_service.rb,
lib/minfraud/error_handler.rb,
lib/minfraud/components/base.rb,
lib/minfraud/components/email.rb,
lib/minfraud/components/event.rb,
lib/minfraud/components/order.rb,
lib/minfraud/components/device.rb,
lib/minfraud/components/account.rb,
lib/minfraud/components/billing.rb,
lib/minfraud/components/payment.rb,
lib/minfraud/components/shipping.rb,
lib/minfraud/http_service/request.rb,
lib/minfraud/http_service/response.rb,
lib/minfraud/components/addressable.rb,
lib/minfraud/components/credit_card.rb,
lib/minfraud/components/shopping_cart.rb,
lib/minfraud/components/shopping_cart_item.rb

Defined Under Namespace

Modules: Components, Enum, ErrorHandler, HTTPService, Resolver Classes: Assessments, AuthorizationError, BaseError, ClientError, NotEnumValueError, RequestFormatError, ServerError

Constant Summary collapse

VERSION =
'1.0.4'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.license_keyString

Returns MaxMind license key that is used for authorization.

Returns:

  • (String)

    MaxMind license key that is used for authorization


34
35
36
# File 'lib/minfraud.rb', line 34

def license_key
  @license_key
end

.user_idString

Returns MaxMind username that is used for authorization.

Returns:

  • (String)

    MaxMind username that is used for authorization


30
31
32
# File 'lib/minfraud.rb', line 30

def user_id
  @user_id
end

Class Method Details

.configurationHash

Returns current Minfraud configuration.

Returns:

  • (Hash)

    current Minfraud configuration


42
43
44
45
46
47
# File 'lib/minfraud.rb', line 42

def configuration
  {
    user_id:     @user_id,
    license_key: @license_key
  }
end

.configure {|self| ... } ⇒ Object

Yields:

  • (self)

    to accept configuration settings


37
38
39
# File 'lib/minfraud.rb', line 37

def configure
  yield self
end