Class: Apiddress::ValidateEmailResponse
- Inherits:
-
Data
- Object
- Data
- Apiddress::ValidateEmailResponse
- Defined in:
- lib/apiddress/models.rb
Overview
Result of validating a single email address.
Instance Attribute Summary collapse
-
#checks ⇒ Object
readonly
Returns the value of attribute checks.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#normalized_email ⇒ Object
readonly
Returns the value of attribute normalized_email.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#score ⇒ Object
readonly
Returns the value of attribute score.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#suggestion ⇒ Object
readonly
Returns the value of attribute suggestion.
-
#valid ⇒ Object
readonly
Returns the value of attribute valid.
Class Method Summary collapse
Instance Attribute Details
#checks ⇒ Object (readonly)
Returns the value of attribute checks
42 43 44 |
# File 'lib/apiddress/models.rb', line 42 def checks @checks end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at
42 43 44 |
# File 'lib/apiddress/models.rb', line 42 def created_at @created_at end |
#email ⇒ Object (readonly)
Returns the value of attribute email
42 43 44 |
# File 'lib/apiddress/models.rb', line 42 def email @email end |
#normalized_email ⇒ Object (readonly)
Returns the value of attribute normalized_email
42 43 44 |
# File 'lib/apiddress/models.rb', line 42 def normalized_email @normalized_email end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider
42 43 44 |
# File 'lib/apiddress/models.rb', line 42 def provider @provider end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
42 43 44 |
# File 'lib/apiddress/models.rb', line 42 def reason @reason end |
#score ⇒ Object (readonly)
Returns the value of attribute score
42 43 44 |
# File 'lib/apiddress/models.rb', line 42 def score @score end |
#status ⇒ Object (readonly)
Returns the value of attribute status
42 43 44 |
# File 'lib/apiddress/models.rb', line 42 def status @status end |
#suggestion ⇒ Object (readonly)
Returns the value of attribute suggestion
42 43 44 |
# File 'lib/apiddress/models.rb', line 42 def suggestion @suggestion end |
#valid ⇒ Object (readonly)
Returns the value of attribute valid
42 43 44 |
# File 'lib/apiddress/models.rb', line 42 def valid @valid end |
Class Method Details
.from_hash(data) ⇒ Object
58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/apiddress/models.rb', line 58 def self.from_hash(data) new( email: data["email"], normalized_email: data["normalized_email"], status: data["status"], valid: data["valid"], score: data["score"].to_f, reason: data["reason"], suggestion: data["suggestion"], checks: ValidationChecks.from_hash(data["checks"]), provider: data["provider"], created_at: data["created_at"], ) end |