Class: Apiddress::ValidationChecks
- Inherits:
-
Data
- Object
- Data
- Apiddress::ValidationChecks
- Defined in:
- lib/apiddress/models.rb
Overview
Individual checks performed on an email address.
Instance Attribute Summary collapse
-
#catch_all ⇒ Object
readonly
Returns the value of attribute catch_all.
-
#disposable ⇒ Object
readonly
Returns the value of attribute disposable.
-
#domain_exists ⇒ Object
readonly
Returns the value of attribute domain_exists.
-
#free_provider ⇒ Object
readonly
Returns the value of attribute free_provider.
-
#mx ⇒ Object
readonly
Returns the value of attribute mx.
-
#role_based ⇒ Object
readonly
Returns the value of attribute role_based.
-
#smtp ⇒ Object
readonly
Returns the value of attribute smtp.
-
#spam_trap_risk ⇒ Object
readonly
Returns the value of attribute spam_trap_risk.
-
#syntax ⇒ Object
readonly
Returns the value of attribute syntax.
-
#typo ⇒ Object
readonly
Returns the value of attribute typo.
Class Method Summary collapse
Instance Attribute Details
#catch_all ⇒ Object (readonly)
Returns the value of attribute catch_all
8 9 10 |
# File 'lib/apiddress/models.rb', line 8 def catch_all @catch_all end |
#disposable ⇒ Object (readonly)
Returns the value of attribute disposable
8 9 10 |
# File 'lib/apiddress/models.rb', line 8 def disposable @disposable end |
#domain_exists ⇒ Object (readonly)
Returns the value of attribute domain_exists
8 9 10 |
# File 'lib/apiddress/models.rb', line 8 def domain_exists @domain_exists end |
#free_provider ⇒ Object (readonly)
Returns the value of attribute free_provider
8 9 10 |
# File 'lib/apiddress/models.rb', line 8 def free_provider @free_provider end |
#mx ⇒ Object (readonly)
Returns the value of attribute mx
8 9 10 |
# File 'lib/apiddress/models.rb', line 8 def mx @mx end |
#role_based ⇒ Object (readonly)
Returns the value of attribute role_based
8 9 10 |
# File 'lib/apiddress/models.rb', line 8 def role_based @role_based end |
#smtp ⇒ Object (readonly)
Returns the value of attribute smtp
8 9 10 |
# File 'lib/apiddress/models.rb', line 8 def smtp @smtp end |
#spam_trap_risk ⇒ Object (readonly)
Returns the value of attribute spam_trap_risk
8 9 10 |
# File 'lib/apiddress/models.rb', line 8 def spam_trap_risk @spam_trap_risk end |
#syntax ⇒ Object (readonly)
Returns the value of attribute syntax
8 9 10 |
# File 'lib/apiddress/models.rb', line 8 def syntax @syntax end |
#typo ⇒ Object (readonly)
Returns the value of attribute typo
8 9 10 |
# File 'lib/apiddress/models.rb', line 8 def typo @typo end |
Class Method Details
.from_hash(data) ⇒ ValidationChecks
25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/apiddress/models.rb', line 25 def self.from_hash(data) new( syntax: data["syntax"], domain_exists: data["domain_exists"], mx: data["mx"], smtp: data["smtp"], disposable: data["disposable"], role_based: data["role_based"], free_provider: data["free_provider"], catch_all: data["catch_all"], typo: data["typo"], spam_trap_risk: data["spam_trap_risk"], ) end |