Sha256: 1e0f00d70f4480867499580d9ac0ffd0c427f198061510d33890c4244a6d52cf
Contents?: true
Size: 343 Bytes
Versions: 5
Compression:
Stored size: 343 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[:applicant_id] = applicant_id payload[:file] = open(payload.fetch(:file), 'r') post( url: url_for("/live_photos"), payload: payload ) end end end
Version data entries
5 entries across 5 versions & 1 rubygems