Sha256: e36ec7030bf91610ca2b7833d78cebdd7bd03d7aa81ee3a6f67882304d976c8c
Contents?: true
Size: 422 Bytes
Versions: 3
Compression:
Stored size: 422 Bytes
Contents
module Onfido class Applicant < Resource def create(payload) post( url: url_for('applicants'), payload: payload ) end def find(applicant_id) get(url: url_for("applicants/#{applicant_id}"), payload: {}) end def all(page: 1, per_page: 20) get( url: url_for("applicants?page=#{page}&per_page=#{per_page}"), payload: {} ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
onfido-0.3.0 | lib/onfido/applicant.rb |
onfido-0.2.0 | lib/onfido/applicant.rb |
onfido-0.1.0 | lib/onfido/applicant.rb |