module NgpVan::Client::People
Public Instance Methods
apply_code_to_person(id:, body: {})
click to toggle source
# File lib/ngp_van/client/people.rb, line 34 def apply_code_to_person(id:, body: {}) verify_id(id) post(path: "people/#{id}/codes", body: body) end
create_canvass_responses_for_person(id:, body: {})
click to toggle source
# File lib/ngp_van/client/people.rb, line 24 def create_canvass_responses_for_person(id:, body: {}) verify_id(id) post(path: "people/#{id}/canvassResponses", body: body) end
create_canvass_responses_for_person_by_type(id:, type:, body: {})
click to toggle source
# File lib/ngp_van/client/people.rb, line 29 def create_canvass_responses_for_person_by_type(id:, type:, body: {}) verify_ids(id, type) post(path: "people/#{type}:#{id}/canvassResponses", body: body) end
create_notes_for_person(id:, body: {})
click to toggle source
# File lib/ngp_van/client/people.rb, line 54 def create_notes_for_person(id:, body: {}) verify_id(id) post(path: "people/#{id}/notes", body: body) end
create_notes_for_person_by_type(id:, type:, body: {})
click to toggle source
# File lib/ngp_van/client/people.rb, line 59 def create_notes_for_person_by_type(id:, type:, body: {}) verify_ids(id, type) post(path: "people/#{type}:#{id}/notes", body: body) end
delete_code_from_person(id:, codeId:)
click to toggle source
# File lib/ngp_van/client/people.rb, line 39 def delete_code_from_person(id:, codeId:) verify_ids(id, codeId) delete(path: "people/#{id}/codes/#{codeId}") end
find_or_create_person(body: {})
click to toggle source
# File lib/ngp_van/client/people.rb, line 10 def find_or_create_person(body: {}) post(path: 'people/findOrCreate', body: body) end
find_person(body: {})
click to toggle source
# File lib/ngp_van/client/people.rb, line 6 def find_person(body: {}) post(path: 'people/find', body: body) end
get_person_by_van_id(id:, params: {})
click to toggle source
# File lib/ngp_van/client/people.rb, line 49 def get_person_by_van_id(id:, params: {}) verify_id(id) get(path: "people/#{id}", params: params) end
person(id:, params: {})
click to toggle source
# File lib/ngp_van/client/people.rb, line 14 def person(id:, params: {}) verify_id(id) get(path: "people/#{id}", params: params) end
person_by_type(id:, type:, params: {})
click to toggle source
# File lib/ngp_van/client/people.rb, line 19 def person_by_type(id:, type:, params: {}) verify_ids(id, type) get(path: "people/#{type}:#{id}", params: params) end
update_person_by_van_id(id:, body: {})
click to toggle source
# File lib/ngp_van/client/people.rb, line 44 def update_person_by_van_id(id:, body: {}) verify_id(id) post(path: "people/#{id}", body: body) end