Sha256: 3797053e9053130ea0bd0d7a13db28ee3987190bd7b85cb65c1d9b3143bd671d
Contents?: true
Size: 563 Bytes
Versions: 9
Compression:
Stored size: 563 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 end end
Version data entries
9 entries across 9 versions & 1 rubygems