Class: Jigsaw::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/jigsaw/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key) ⇒ Client

Returns a new instance of Client.



6
7
8
# File 'lib/jigsaw/client.rb', line 6

def initialize(api_key)
  @api_key = api_key
end

Instance Attribute Details

#api_keyObject (readonly)

Returns the value of attribute api_key.



4
5
6
# File 'lib/jigsaw/client.rb', line 4

def api_key
  @api_key
end

Instance Method Details

#company_search(options = {}, fetch_all = false) ⇒ Object



10
11
12
# File 'lib/jigsaw/client.rb', line 10

def company_search(options = {}, fetch_all = false)
  CompanyBasic.list(@api_key, options, fetch_all)
end