0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
A Ruby gem to retrieve data about people and organizations from http://public.xenapto.com
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

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