Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Latest commit

 

History

History
executable file
·
59 lines (38 loc) · 2.19 KB

README.md

File metadata and controls

executable file
·
59 lines (38 loc) · 2.19 KB

The contact-data gem

Gem Version Code Climate Coverage Status security build status Developer status Join the chat at https://gitter.im/Xenapto/contact-data

Retrieves information about people and organizations from http://public.xenapto.com

Installation

Add this line to your application's Gemfile:

gem 'contact-data'

And then execute:

$ bundle

Or install it yourself as:

$ gem install contact-data

Usage

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

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Acknowledgements

  1. Thanks to Ryan Bigg for the guide to making your first gem https://github.com/radar/guides/blob/master/gem-development.md