Class: TowerDataApi::EmailValidation

Inherits:
Object
  • Object
show all
Defined in:
lib/towerdata_api/email_validation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject

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_correctionObject

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

#okObject 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

#statusObject

Returns the value of attribute status.



3
4
5
# File 'lib/towerdata_api/email_validation.rb', line 3

def status
  @status
end

#status_codeObject

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