Sha256: 71a05f50e15f2b5c60c54744e1687b8b0167f8c48336ff78dd989dc771b8a030
Contents?: true
Size: 508 Bytes
Versions: 2
Compression:
Stored size: 508 Bytes
Contents
module Onfido class Check < Resource def create(applicant_id, payload) post( url: url_for("applicants/#{applicant_id}/checks"), payload: payload ) end def find(applicant_id, check_id) get(url: url_for("applicants/#{applicant_id}/checks/#{check_id}")) end def all(applicant_id, page: 1, per_page: 20) querystring = "page=#{page}&per_page=#{per_page}" get(url: url_for("applicants/#{applicant_id}/checks?#{querystring}")) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
onfido-0.5.0 | lib/onfido/resources/check.rb |
onfido-0.4.0 | lib/onfido/resources/check.rb |