Class: EmailHunter::Verify

Inherits:
Object
  • Object
show all
Defined in:
lib/email_hunter/verify.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(email, key) ⇒ Verify

Returns a new instance of Verify.



10
11
12
13
# File 'lib/email_hunter/verify.rb', line 10

def initialize(email, key)
  @email = email
  @key = key
end

Instance Attribute Details

#accept_allObject (readonly)

Returns the value of attribute accept_all.



8
9
10
# File 'lib/email_hunter/verify.rb', line 8

def accept_all
  @accept_all
end

#disposableObject (readonly)

Returns the value of attribute disposable.



8
9
10
# File 'lib/email_hunter/verify.rb', line 8

def disposable
  @disposable
end

#emailObject (readonly)

Returns the value of attribute email.



8
9
10
# File 'lib/email_hunter/verify.rb', line 8

def email
  @email
end

#gibberishObject (readonly)

Returns the value of attribute gibberish.



8
9
10
# File 'lib/email_hunter/verify.rb', line 8

def gibberish
  @gibberish
end

#mx_recordsObject (readonly)

Returns the value of attribute mx_records.



8
9
10
# File 'lib/email_hunter/verify.rb', line 8

def mx_records
  @mx_records
end

#regexpObject (readonly)

Returns the value of attribute regexp.



8
9
10
# File 'lib/email_hunter/verify.rb', line 8

def regexp
  @regexp
end

#resultObject (readonly)

Returns the value of attribute result.



8
9
10
# File 'lib/email_hunter/verify.rb', line 8

def result
  @result
end

#scoreObject (readonly)

Returns the value of attribute score.



8
9
10
# File 'lib/email_hunter/verify.rb', line 8

def score
  @score
end

#smtp_checkObject (readonly)

Returns the value of attribute smtp_check.



8
9
10
# File 'lib/email_hunter/verify.rb', line 8

def smtp_check
  @smtp_check
end

#smtp_serverObject (readonly)

Returns the value of attribute smtp_server.



8
9
10
# File 'lib/email_hunter/verify.rb', line 8

def smtp_server
  @smtp_server
end

#sourcesObject (readonly)

Returns the value of attribute sources.



8
9
10
# File 'lib/email_hunter/verify.rb', line 8

def sources
  @sources
end

#statusObject (readonly)

Returns the value of attribute status.



8
9
10
# File 'lib/email_hunter/verify.rb', line 8

def status
  @status
end

#webmailObject (readonly)

Returns the value of attribute webmail.



8
9
10
# File 'lib/email_hunter/verify.rb', line 8

def webmail
  @webmail
end

Instance Method Details

#huntObject



15
16
17
18
# File 'lib/email_hunter/verify.rb', line 15

def hunt
  response = apiresponse
  Struct.new(*response.keys).new(*response.values) unless response.empty?
end