class EmailHunter::Api

Attributes

key[R]

Public Class Methods

new(key) click to toggle source
# File lib/email_hunter/api.rb, line 16
def initialize(key)
  @key = key
end

Public Instance Methods

account() click to toggle source

Account Information API

# File lib/email_hunter/api.rb, line 46
def account
  EmailHunter::Account.new(key).hunt
end
count(domain) click to toggle source

Email Count API

# File lib/email_hunter/api.rb, line 41
def count(domain)
  EmailHunter::Count.new(domain).hunt
end
exist(email) click to toggle source

Email exist API

# File lib/email_hunter/api.rb, line 26
def exist(email)
  EmailHunter::Exist.new(email, key).hunt
end
finder(domain, first_name, last_name) click to toggle source

Email Finder API

# File lib/email_hunter/api.rb, line 36
def finder(domain, first_name, last_name)
  EmailHunter::Finder.new(domain, first_name, last_name, key).hunt
end
verify(email) click to toggle source

Email verify API

# File lib/email_hunter/api.rb, line 31
def verify(email)
  EmailHunter::Verify.new(email, key).hunt
end