Sha256: 05fcebd43b4a9ac8d755fefbc28479abb6b1fc2216ff62c2020375fecc081efe

Contents?: true

Size: 348 Bytes

Versions: 6

Compression:

Stored size: 348 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}"))
    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

6 entries across 6 versions & 1 rubygems

Version Path
onfido-0.7.1 lib/onfido/resources/applicant.rb
onfido-0.7.0 lib/onfido/resources/applicant.rb
onfido-0.6.1 lib/onfido/resources/applicant.rb
onfido-0.6.0 lib/onfido/resources/applicant.rb
onfido-0.5.0 lib/onfido/resources/applicant.rb
onfido-0.4.0 lib/onfido/resources/applicant.rb