Sha256: 17608a0723756d575f0d74aa7ca29d1887b0f238467246088fa8f7e7e5ceb35e

Contents?: true

Size: 846 Bytes

Versions: 5

Compression:

Stored size: 846 Bytes

Contents

# frozen_string_literal: true

module Yoti
  module DocScan
    module Session
      module Retrieve
        class ZoomLivenessResourceResponse < LivenessResourceResponse
          # @return [FaceMapResponse]
          attr_reader :facemap

          # @return [Array<FrameResponse>]
          attr_reader :frames

          #
          # @param [Hash] resource
          #
          def initialize(resource)
            super(resource)

            @facemap = FaceMapResponse.new(resource['facemap']) unless resource['facemap'].nil?

            if resource['frames'].nil?
              @frames = []
            else
              Validation.assert_is_a(Array, resource['frames'], 'frames')
              @frames = resource['frames'].map { |frame| FrameResponse.new(frame) }
            end
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yoti-1.10.0 lib/yoti/doc_scan/session/retrieve/zoom_liveness_resource_response.rb
yoti-1.9.0 lib/yoti/doc_scan/session/retrieve/zoom_liveness_resource_response.rb
yoti-1.8.0 lib/yoti/doc_scan/session/retrieve/zoom_liveness_resource_response.rb
yoti-1.7.1 lib/yoti/doc_scan/session/retrieve/zoom_liveness_resource_response.rb
yoti-1.7.0 lib/yoti/doc_scan/session/retrieve/zoom_liveness_resource_response.rb