Class: Yoti::DocScan::Session::Retrieve::ZoomLivenessResourceResponse
- Inherits:
-
LivenessResourceResponse
- Object
- ResourceResponse
- LivenessResourceResponse
- Yoti::DocScan::Session::Retrieve::ZoomLivenessResourceResponse
- Defined in:
- lib/yoti/doc_scan/session/retrieve/zoom_liveness_resource_response.rb
Instance Attribute Summary collapse
- #facemap ⇒ FaceMapResponse readonly
- #frames ⇒ Array<FrameResponse> readonly
Attributes inherited from LivenessResourceResponse
Attributes inherited from ResourceResponse
Instance Method Summary collapse
-
#initialize(resource) ⇒ ZoomLivenessResourceResponse
constructor
A new instance of ZoomLivenessResourceResponse.
Constructor Details
#initialize(resource) ⇒ ZoomLivenessResourceResponse
Returns a new instance of ZoomLivenessResourceResponse.
17 18 19 20 21 22 23 24 25 26 27 28 |
# 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 |
Instance Attribute Details
#facemap ⇒ FaceMapResponse (readonly)
9 10 11 |
# File 'lib/yoti/doc_scan/session/retrieve/zoom_liveness_resource_response.rb', line 9 def facemap @facemap end |
#frames ⇒ Array<FrameResponse> (readonly)
12 13 14 |
# File 'lib/yoti/doc_scan/session/retrieve/zoom_liveness_resource_response.rb', line 12 def frames @frames end |