Class: Qwerly::Profile
- Inherits:
-
QwerlyBase
- Object
- QwerlyBase
- Qwerly::Profile
- Defined in:
- lib/qwerly.rb
Instance Attribute Summary
Attributes inherited from QwerlyBase
Instance Method Summary collapse
- #email(email) ⇒ Object
- #facebook_by_id(facebook_id) ⇒ Object
- #facebook_by_username(username) ⇒ Object
- #twitter(username) ⇒ Object
Methods inherited from QwerlyBase
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 |