Class: TowerDataApi::EmailValidation
- Inherits:
-
Object
- Object
- TowerDataApi::EmailValidation
- Defined in:
- lib/towerdata_api/email_validation.rb
Instance Attribute Summary collapse
-
#domain_type ⇒ Object
Returns the value of attribute domain_type.
-
#email_correction ⇒ Object
Returns the value of attribute email_correction.
-
#ok ⇒ Object
(also: #valid?)
Returns the value of attribute ok.
-
#status ⇒ Object
Returns the value of attribute status.
-
#status_code ⇒ Object
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(values) ⇒ EmailValidation
constructor
A new instance of EmailValidation.
Constructor Details
#initialize(values) ⇒ EmailValidation
Returns a new instance of EmailValidation.
6 7 8 9 10 |
# File 'lib/towerdata_api/email_validation.rb', line 6 def initialize values values.each do |key, value| self.send("#{key}=", value) end end |
Instance Attribute Details
#domain_type ⇒ Object
Returns the value of attribute domain_type.
3 4 5 |
# File 'lib/towerdata_api/email_validation.rb', line 3 def domain_type @domain_type end |
#email_correction ⇒ Object
Returns the value of attribute email_correction.
3 4 5 |
# File 'lib/towerdata_api/email_validation.rb', line 3 def email_correction @email_correction end |
#ok ⇒ Object Also known as: valid?
Returns the value of attribute ok.
3 4 5 |
# File 'lib/towerdata_api/email_validation.rb', line 3 def ok @ok end |
#status ⇒ Object
Returns the value of attribute status.
3 4 5 |
# File 'lib/towerdata_api/email_validation.rb', line 3 def status @status end |
#status_code ⇒ Object
Returns the value of attribute status_code.
3 4 5 |
# File 'lib/towerdata_api/email_validation.rb', line 3 def status_code @status_code end |