Class: Minfraud::Components::Email
- Defined in:
- lib/minfraud/components/email.rb
Overview
Email corresponds to the email object of a minFraud request.
Instance Attribute Summary collapse
-
#address ⇒ String?
This field must be either be a valid email address or an MD5 of the lowercased email used in the transaction.
-
#domain ⇒ String?
The domain of the email address used in the transaction.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Email
constructor
A new instance of Email.
Methods inherited from Base
Constructor Details
#initialize(params = {}) ⇒ Email
Returns a new instance of Email.
26 27 28 29 30 31 |
# File 'lib/minfraud/components/email.rb', line 26 def initialize(params = {}) @address = params[:address] @domain = params[:domain] validate end |
Instance Attribute Details
#address ⇒ String?
This field must be either be a valid email address or an MD5 of the lowercased email used in the transaction. Important: if using the MD5 hash, please be sure to convert the email address to lowercase before calculating its MD5 hash.
17 18 19 |
# File 'lib/minfraud/components/email.rb', line 17 def address @address end |
#domain ⇒ String?
The domain of the email address used in the transaction.
22 23 24 |
# File 'lib/minfraud/components/email.rb', line 22 def domain @domain end |