Class: Qwerly::Services

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



46
47
48
# File 'lib/qwerly.rb', line 46

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

#facebook_by_id(facebook_id) ⇒ Object



34
35
36
# File 'lib/qwerly.rb', line 34

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

#facebook_by_username(username) ⇒ Object



38
39
40
# File 'lib/qwerly.rb', line 38

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

#twitter(username) ⇒ Object



42
43
44
# File 'lib/qwerly.rb', line 42

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