Class: EmailHunter::Verify
- Inherits:
-
Object
- Object
- EmailHunter::Verify
- Defined in:
- lib/email_hunter/verify.rb
Instance Attribute Summary collapse
-
#accept_all ⇒ Object
readonly
Returns the value of attribute accept_all.
-
#disposable ⇒ Object
readonly
Returns the value of attribute disposable.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#gibberish ⇒ Object
readonly
Returns the value of attribute gibberish.
-
#mx_records ⇒ Object
readonly
Returns the value of attribute mx_records.
-
#regexp ⇒ Object
readonly
Returns the value of attribute regexp.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#score ⇒ Object
readonly
Returns the value of attribute score.
-
#smtp_check ⇒ Object
readonly
Returns the value of attribute smtp_check.
-
#smtp_server ⇒ Object
readonly
Returns the value of attribute smtp_server.
-
#sources ⇒ Object
readonly
Returns the value of attribute sources.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#webmail ⇒ Object
readonly
Returns the value of attribute webmail.
Instance Method Summary collapse
- #hunt ⇒ Object
-
#initialize(email, key) ⇒ Verify
constructor
A new instance of Verify.
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_all ⇒ Object (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 |
#disposable ⇒ Object (readonly)
Returns the value of attribute disposable.
8 9 10 |
# File 'lib/email_hunter/verify.rb', line 8 def disposable @disposable end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
8 9 10 |
# File 'lib/email_hunter/verify.rb', line 8 def email @email end |
#gibberish ⇒ Object (readonly)
Returns the value of attribute gibberish.
8 9 10 |
# File 'lib/email_hunter/verify.rb', line 8 def gibberish @gibberish end |
#mx_records ⇒ Object (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 |
#regexp ⇒ Object (readonly)
Returns the value of attribute regexp.
8 9 10 |
# File 'lib/email_hunter/verify.rb', line 8 def regexp @regexp end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
8 9 10 |
# File 'lib/email_hunter/verify.rb', line 8 def result @result end |
#score ⇒ Object (readonly)
Returns the value of attribute score.
8 9 10 |
# File 'lib/email_hunter/verify.rb', line 8 def score @score end |
#smtp_check ⇒ Object (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_server ⇒ Object (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 |
#sources ⇒ Object (readonly)
Returns the value of attribute sources.
8 9 10 |
# File 'lib/email_hunter/verify.rb', line 8 def sources @sources end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
8 9 10 |
# File 'lib/email_hunter/verify.rb', line 8 def status @status end |
#webmail ⇒ Object (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
#hunt ⇒ Object
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 |