class Jigsaw::Client
Attributes
api_key[R]
Public Class Methods
new(api_key)
click to toggle source
# File lib/jigsaw/client.rb, line 6 def initialize(api_key) @api_key = api_key end
Public Instance Methods
company(id, options = {})
click to toggle source
# File lib/jigsaw/client.rb, line 18 def company(id, options = {}) Company.find(@api_key, id, options) end
company_search(options = {}, fetch_all = false)
click to toggle source
# File lib/jigsaw/client.rb, line 10 def company_search(options = {}, fetch_all = false) CompanySearch.list(@api_key, options, fetch_all) end
contact_search(options = {}, fetch_all = false)
click to toggle source
# File lib/jigsaw/client.rb, line 14 def contact_search(options = {}, fetch_all = false) ContactSearch.list(@api_key, options, fetch_all) end