Sha256: 99fce06b31776c0ab6ca339041ad9952a955e55c11c6cd475a5fbd0e73a9bf3c
Contents?: true
Size: 721 Bytes
Versions: 1
Compression:
Stored size: 721 Bytes
Contents
# frozen_string_literal: true require 'base64' module Yoti module Sandbox module DocScan module Request class DocumentIdPhoto # # @param [String] content_type # @param [bin] data # def initialize(content_type, data) Validation.assert_is_a(String, content_type, 'content_type') @content_type = content_type @data = data end def to_json(*_args) as_json.to_json end def as_json(*_args) { content_type: @content_type, data: Base64.strict_encode64(@data) } end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yoti_sandbox-1.4.0 | lib/yoti_sandbox/doc_scan/request/task/document_id_photo.rb |