Module: MuckInvites::Models::MuckInviter::ClassMethods

Defined in:
lib/muck-invites/models/inviter.rb

Instance Method Summary collapse

Instance Method Details

#get_contacts(email, password) ⇒ Object



15
16
17
18
19
20
21
22
# File 'lib/muck-invites/models/inviter.rb', line 15

def get_contacts(email, password)
  return Contacts::Gmail.new(email, password).contacts if email.include?('@gmail.com')
  return Contacts::Yahoo.new(email, password).contacts if email.include?('@yahoo.com')
  return Contacts::Hotmail.new(email, password).contacts if email.include?('@hotmail.com')
  return Contacts::Aol.new(email, password).contacts if email.include?('@aol.com')
  return Contacts::Plaxo.new(email, password).contacts if email.include?('@plaxo.com')
  return Contacts.guess(email, password).contacts
end