Class: Minfraud::Components::Account

Inherits:
Base
  • Object
show all
Defined in:
lib/minfraud/components/account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_json

Constructor Details

#initialize(params = {}) ⇒ Minfraud::Components::Account

Creates Minfraud::Components::Account instance

Parameters:

  • params (Hash) (defaults to: {})

    hash of parameters



17
18
19
20
# File 'lib/minfraud/components/account.rb', line 17

def initialize(params = {})
  @user_id      = params[:user_id]
  @username_md5 = params[:username_md5]
end

Instance Attribute Details

#user_idString

If your system allows the login name for the account to be changed, this should not be the login name for the account, but rather should be an internal ID that does not change. This is not your MaxMind user ID

Returns:

  • (String)

    A unique user ID associated with the end-user in your system.



8
9
10
# File 'lib/minfraud/components/account.rb', line 8

def user_id
  @user_id
end

#username_md5String

Returns An MD5 hash as a hexadecimal string of the username or login name associated with the account.

Returns:

  • (String)

    An MD5 hash as a hexadecimal string of the username or login name associated with the account



12
13
14
# File 'lib/minfraud/components/account.rb', line 12

def username_md5
  @username_md5
end