Sha256: 41e1ed80a2ad6b506cdccdec51fd53f5e9d161f2eb9a8586ca22194634a6be92
Contents?: true
Size: 665 Bytes
Versions: 3
Compression:
Stored size: 665 Bytes
Contents
module Onfido class Applicant < Resource def create(payload) post(url: url_for('applicants'), payload: payload) end def update(applicant_id, payload) put(url: url_for("applicants/#{applicant_id}"), payload: payload) end def destroy(applicant_id) delete(url: url_for("applicants/#{applicant_id}")) end def find(applicant_id) get(url: url_for("applicants/#{applicant_id}")) end def all(page: 1, per_page: 20) get(url: url_for("applicants?page=#{page}&per_page=#{per_page}")) end def restore(applicant_id) post(url: url_for("applicants/#{applicant_id}/restore")) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
onfido-0.15.1 | lib/onfido/resources/applicant.rb |
onfido-0.15.0 | lib/onfido/resources/applicant.rb |
onfido-0.14.0 | lib/onfido/resources/applicant.rb |