Puzzle

Puzzle is an easy to use wrapper around the jigsaw API (www.jigsaw.com)

Usage

Setup the gem

require "puzzle"

Puzzle.configure do |configuration|
  configuration.token = "yourdevelopertoken"
end

Search contacts

contacts =  Puzzle::Contact.find({
  :firstname => "Aaron"
})

contacts.each do |contact|
  p contact.firstname + " " + contact.lastname
end

Search companies

companies =  Puzzle::Company.find({
  :name => "Apple"
})

companies.each do |company|
  p company.name
end

Contributing to puzzle

Copyright © 2011 Simon Gingras. See LICENSE.txt for further details.