Class: PostcodeAnywhere::EmailValidation::ValidationResult

Inherits:
ModelBase
  • Object
show all
Defined in:
lib/postcode_anywhere/email_validation/validation_result.rb

Instance Attribute Summary collapse

Attributes inherited from ModelBase

#attrs

Method Summary

Methods inherited from ModelBase

attr_reader, define_attribute_method, define_predicate_method, #initialize, object_attr_reader, predicate_attr_reader

Constructor Details

This class inherits a constructor from PostcodeAnywhere::ModelBase

Instance Attribute Details

#emailObject (readonly)

The address the email was sent to. Example: [email protected]



8
9
10
# File 'lib/postcode_anywhere/email_validation/validation_result.rb', line 8

def email
  @email
end

#found_dns_recordObject (readonly)

Indicates that a valid DNS record was found for the email. Example: true



21
22
23
# File 'lib/postcode_anywhere/email_validation/validation_result.rb', line 21

def found_dns_record
  @found_dns_record
end

#mail_serverObject (readonly)

The mail server that was used to perform the server and account validation steps on. Not populated if the DNS record was not found. Example: google.com.s9a1.psmtp.com



13
14
15
# File 'lib/postcode_anywhere/email_validation/validation_result.rb', line 13

def mail_server
  @mail_server
end

#valid_formatObject (readonly)

Indicates that the format of the email appears valid. Example: true



17
18
19
# File 'lib/postcode_anywhere/email_validation/validation_result.rb', line 17

def valid_format
  @valid_format
end