Class: Minfraud::Components::Account
- Defined in:
- lib/minfraud/components/account.rb
Instance Attribute Summary collapse
-
#user_id ⇒ String
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.
-
#username_md5 ⇒ String
An MD5 hash as a hexadecimal string of the username or login name associated with the account.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Minfraud::Components::Account
constructor
Creates Minfraud::Components::Account instance.
Methods inherited from Base
Constructor Details
#initialize(params = {}) ⇒ Minfraud::Components::Account
Creates Minfraud::Components::Account instance
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_id ⇒ String
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
8 9 10 |
# File 'lib/minfraud/components/account.rb', line 8 def user_id @user_id end |
#username_md5 ⇒ String
Returns 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 |