Class: Minfraud::Model::Email

Inherits:
Abstract
  • Object
show all
Defined in:
lib/minfraud/model/email.rb

Overview

Model containing information about the email address.

Instance Attribute Summary collapse

Instance Attribute Details

#domainMinfraud::Model::EmailDomain (readonly)

An object containing information about the email domain.



13
14
15
# File 'lib/minfraud/model/email.rb', line 13

def domain
  @domain
end

#first_seenString? (readonly)

A date string (e.g. 2017-04-24) to identify the date an email address was first seen by MaxMind. This is expressed using the ISO 8601 date format.

Returns:

  • (String, nil)


20
21
22
# File 'lib/minfraud/model/email.rb', line 20

def first_seen
  @first_seen
end

#is_disposableBoolean? (readonly)

Whether this email address is from a disposable email provider. The value will be nil when no email address or email domain has been passed as an input.

Returns:

  • (Boolean, nil)


27
28
29
# File 'lib/minfraud/model/email.rb', line 27

def is_disposable
  @is_disposable
end

#is_freeBoolean? (readonly)

This property is true if MaxMind believes that this email is hosted by a free email provider such as Gmail or Yahoo! Mail.

Returns:

  • (Boolean, nil)


33
34
35
# File 'lib/minfraud/model/email.rb', line 33

def is_free
  @is_free
end

#is_high_riskBoolean? (readonly)

This field is true if MaxMind believes that this email is likely to be used for fraud. Note that this is also factored into the overall risk_score in the response as well.

Returns:

  • (Boolean, nil)


40
41
42
# File 'lib/minfraud/model/email.rb', line 40

def is_high_risk
  @is_high_risk
end