Sha256: 69f0a5e0d465a2ce79934ed005391e7491f48e2118b6e12879b4e32a804e7994

Contents?: true

Size: 477 Bytes

Versions: 3

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true

module Yoti
  module DocScan
    module Session
      module Retrieve
        class DocumentIdPhotoResponse
          # @return [MediaResponse]
          attr_reader :media

          #
          # @param [Hash] document_id_photo
          #
          def initialize(document_id_photo)
            @media = MediaResponse.new(document_id_photo['media']) unless document_id_photo['media'].nil?
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yoti-1.10.0 lib/yoti/doc_scan/session/retrieve/document_id_photo_response.rb
yoti-1.9.0 lib/yoti/doc_scan/session/retrieve/document_id_photo_response.rb
yoti-1.8.0 lib/yoti/doc_scan/session/retrieve/document_id_photo_response.rb