Retrieves information about people and organizations from http://public.xenapto.com
Add this line to your application's Gemfile:
gem 'contact-data'
And then execute:
$ bundle
Or install it yourself as:
$ gem install contact-data
Examples:
ContactData.search 'John Smith III'
Or you can create an instance if you need to call it several times
contact_data = ContactData::Contact.new
['John Smith', 'Example Inc.', 'Crazy Ventures LLC'].each do |name|
contact_data.search name
end
ContactData will make an intelligent guess at the type of the name but it's not infallible. ContactData likes it if you tell it whether the name is a person or an organization:
contact_data = ContactData::Contact.new 'Di Doo Doo d.o.o.', contact_type: :organization
contact_data.search
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
- Thanks to Ryan Bigg for the guide to making your first gem https://github.com/radar/guides/blob/master/gem-development.md