Module: FullContact::Client::Company
- Included in:
- FullContact::Client
- Defined in:
- lib/fullcontact/client/company.rb
Instance Method Summary collapse
-
#company(options = {}, faraday_options = {}) ⇒ Object
Returns extended information for a given company (email, phone, twitter or facebook).
Instance Method Details
#company(options = {}, faraday_options = {}) ⇒ Object
Returns extended information for a given company (email, phone, twitter or facebook)
6 7 8 9 10 11 12 13 |
# File 'lib/fullcontact/client/company.rb', line 6 def company(={}, ={}) url = "company/lookup" if [:companyName] url = "company/search" end response = get(url, , false, ) format.to_s.downcase == 'xml' ? response['response'] : response end |