Module: Knodes::Client::People

Included in:
Knodes::Client
Defined in:
lib/knodes/client/people.rb

Instance Method Summary collapse

Instance Method Details

#people_search(options = {}) ⇒ Object



8
9
10
11
# File 'lib/knodes/client/people.rb', line 8

def people_search(options={})
  options.merge!({ :type=> "people" })
  response = get("people/search", options.merge(creds))
end

#person(options = {}) ⇒ Object



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

def person(options={})
  response = get("people/#{options[:person_id]}", options.merge(creds))
end

#person_companies(options = {}) ⇒ Object



26
27
28
# File 'lib/knodes/client/people.rb', line 26

def person_companies(options={})
  response = get("people/#{options[:person_id]}/documents", options.merge(creds))
end

#person_documents(options = {}) ⇒ Object



18
19
20
# File 'lib/knodes/client/people.rb', line 18

def person_documents(options={})
  response = get("people/#{options[:person_id]}/documents", options.merge(creds))
end

#person_locations(options = {}) ⇒ Object



22
23
24
# File 'lib/knodes/client/people.rb', line 22

def person_locations(options={})
  response = get("people/#{options[:person_id]}/locations", options.merge(creds))
end

#person_people(options = {}) ⇒ Object



13
14
15
16
# File 'lib/knodes/client/people.rb', line 13

def person_people(options={})
  options.merge!({:type=>"people", :q=>""})
  response = get("search", options.merge(creds))
end

#person_schools(options = {}) ⇒ Object



30
31
32
# File 'lib/knodes/client/people.rb', line 30

def person_schools(options={})
  response = get("people/#{options[:person_id]}/documents", options.merge(creds))
end