Module: Knodes::Client::People
- Included in:
- Knodes::Client
- Defined in:
- lib/knodes/client/people.rb
Instance Method Summary collapse
- #people_search(options = {}) ⇒ Object
- #person(options = {}) ⇒ Object
- #person_companies(options = {}) ⇒ Object
- #person_documents(options = {}) ⇒ Object
- #person_locations(options = {}) ⇒ Object
- #person_people(options = {}) ⇒ Object
- #person_schools(options = {}) ⇒ Object
Instance Method Details
#people_search(options = {}) ⇒ Object
8 9 10 11 |
# File 'lib/knodes/client/people.rb', line 8 def people_search(={}) .merge!({ :type=> "people" }) response = get("people/search", .merge(creds)) end |
#person(options = {}) ⇒ Object
4 5 6 |
# File 'lib/knodes/client/people.rb', line 4 def person(={}) response = get("people/#{options[:person_id]}", .merge(creds)) end |
#person_companies(options = {}) ⇒ Object
26 27 28 |
# File 'lib/knodes/client/people.rb', line 26 def person_companies(={}) response = get("people/#{options[:person_id]}/documents", .merge(creds)) end |
#person_documents(options = {}) ⇒ Object
18 19 20 |
# File 'lib/knodes/client/people.rb', line 18 def person_documents(={}) response = get("people/#{options[:person_id]}/documents", .merge(creds)) end |
#person_locations(options = {}) ⇒ Object
22 23 24 |
# File 'lib/knodes/client/people.rb', line 22 def person_locations(={}) response = get("people/#{options[:person_id]}/locations", .merge(creds)) end |
#person_people(options = {}) ⇒ Object
13 14 15 16 |
# File 'lib/knodes/client/people.rb', line 13 def person_people(={}) .merge!({:type=>"people", :q=>""}) response = get("search", .merge(creds)) end |
#person_schools(options = {}) ⇒ Object
30 31 32 |
# File 'lib/knodes/client/people.rb', line 30 def person_schools(={}) response = get("people/#{options[:person_id]}/documents", .merge(creds)) end |