Class: PostcodeAnywhere::EmailValidation::ValidationResult
- Defined in:
- lib/postcode_anywhere/email_validation/validation_result.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
The address the email was sent to.
-
#found_dns_record ⇒ Object
readonly
Indicates that a valid DNS record was found for the email.
-
#mail_server ⇒ Object
readonly
The mail server that was used to perform the server and account validation steps on.
-
#valid_format ⇒ Object
readonly
Indicates that the format of the email appears valid.
Attributes inherited from ModelBase
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
#email ⇒ Object (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_record ⇒ Object (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_server ⇒ Object (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_format ⇒ Object (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 |