Class: Qwerly::Profile

Inherits:
QwerlyBase show all
Defined in:
lib/qwerly.rb

Instance Attribute Summary

Attributes inherited from QwerlyBase

#key

Instance Method Summary collapse

Methods inherited from QwerlyBase

#initialize

Constructor Details

This class inherits a constructor from Qwerly::QwerlyBase

Instance Method Details

#email(email) ⇒ Object



28
29
30
# File 'lib/qwerly.rb', line 28

def email(email)
  Qwerly.process_response "#{BASE_URL}/email/#{email}?api_key=#{@key}"
end

#facebook_by_id(facebook_id) ⇒ Object



16
17
18
# File 'lib/qwerly.rb', line 16

def facebook_by_id(facebook_id)
  Qwerly.process_response "#{BASE_URL}/facebook/#{facebook_id}?api_key=#{@key}"
end

#facebook_by_username(username) ⇒ Object



20
21
22
# File 'lib/qwerly.rb', line 20

def facebook_by_username(username)
  Qwerly.process_response "#{BASE_URL}/facebook/username/#{username}?api_key=#{key}"
end

#twitter(username) ⇒ Object



24
25
26
# File 'lib/qwerly.rb', line 24

def twitter(username)
  Qwerly.process_response "#{BASE_URL}/twitter/#{username}?api_key=#{@key}"
end