Sha256: b145e638462a7adf095bf0794b613cafec6794f8bb5ef0235459d7fa38850c63
Contents?: true
Size: 325 Bytes
Versions: 5
Compression:
Stored size: 325 Bytes
Contents
module Onfido class LivePhoto < Resource # with open-uri the file can be a link or an actual file def create(applicant_id, payload) payload[:file] = open(payload.fetch(:file), 'r') post( url: url_for("applicants/#{applicant_id}/live_photos"), payload: payload ) end end end
Version data entries
5 entries across 5 versions & 1 rubygems