class Yoti::DocScan::Session::Retrieve::ZoomLivenessResourceResponse

Attributes

facemap[R]

@return [FaceMapResponse]

frames[R]

@return [Array<FrameResponse>]

Public Class Methods

new(resource) click to toggle source

@param [Hash] resource

# File lib/yoti/doc_scan/session/retrieve/zoom_liveness_resource_response.rb, line 17
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