lib/onfido/resources/applicant.rb in onfido-0.15.1 vs lib/onfido/resources/applicant.rb in onfido-1.0.0

- old
+ new

@@ -1,27 +1,27 @@ module Onfido class Applicant < Resource def create(payload) - post(url: url_for('applicants'), payload: payload) + post(path: 'applicants', payload: payload) end def update(applicant_id, payload) - put(url: url_for("applicants/#{applicant_id}"), payload: payload) + put(path: "applicants/#{applicant_id}", payload: payload) end def destroy(applicant_id) - delete(url: url_for("applicants/#{applicant_id}")) + delete(path: "applicants/#{applicant_id}") end def find(applicant_id) - get(url: url_for("applicants/#{applicant_id}")) + get(path: "applicants/#{applicant_id}") end def all(page: 1, per_page: 20) - get(url: url_for("applicants?page=#{page}&per_page=#{per_page}")) + get(path: "applicants?page=#{page}&per_page=#{per_page}") end def restore(applicant_id) - post(url: url_for("applicants/#{applicant_id}/restore")) + post(path: "applicants/#{applicant_id}/restore") end end end