class Yoti::DocScan::Session::Create::RequestedLivenessCheckConfig
The configuration applied when creating a {RequestedLivenessCheck}
Public Class Methods
new(liveness_type, max_retries)
click to toggle source
@param [String] liveness_type @param [String] max_retries
# File lib/yoti/doc_scan/session/create/requested_liveness_check.rb, line 40 def initialize(liveness_type, max_retries) Validation.assert_is_a(String, liveness_type, 'liveness_type') @liveness_type = liveness_type Validation.assert_is_a(Integer, max_retries, 'max_retries') @max_retries = max_retries end
Public Instance Methods
as_json(*_args)
click to toggle source
# File lib/yoti/doc_scan/session/create/requested_liveness_check.rb, line 48 def as_json(*_args) { liveness_type: @liveness_type, max_retries: @max_retries } end