Sha256: ddbbfda89380396815710b4ae2214846332ee08cb5993688054741dfda49cf4f

Contents?: true

Size: 341 Bytes

Versions: 2

Compression:

Stored size: 341 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
      get(url: url_for("applicants"), payload: {})
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
onfido-0.0.2 lib/onfido/applicant.rb
onfido-0.0.1 lib/onfido/applicant.rb