Class: Minfraud::Components::Email

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_json

Constructor Details

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

Creates Minfraud::Components::Email instance

Parameters:

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

    hash of parameters



15
16
17
18
# File 'lib/minfraud/components/email.rb', line 15

def initialize(params = {})
  @address = params[:address]
  @domain  = params[:domain]
end

Instance Attribute Details

#addressString

Returns This field must be either a valid email address or an MD5 of the email used in the transaction.

Returns:

  • (String)

    This field must be either a valid email address or an MD5 of the email used in the transaction



6
7
8
# File 'lib/minfraud/components/email.rb', line 6

def address
  @address
end

#domainString

Returns The domain of the email address used in the transaction.

Returns:

  • (String)

    The domain of the email address used in the transaction



10
11
12
# File 'lib/minfraud/components/email.rb', line 10

def domain
  @domain
end