Class: Yoti::DocScan::Session::Create::RequestedLivenessCheckConfig
- Inherits:
-
Object
- Object
- Yoti::DocScan::Session::Create::RequestedLivenessCheckConfig
- Defined in:
- lib/yoti/doc_scan/session/create/requested_liveness_check.rb
Overview
The configuration applied when creating a RequestedLivenessCheck
Instance Method Summary collapse
- #as_json(*_args) ⇒ Object
-
#initialize(liveness_type, max_retries) ⇒ RequestedLivenessCheckConfig
constructor
A new instance of RequestedLivenessCheckConfig.
Constructor Details
#initialize(liveness_type, max_retries) ⇒ RequestedLivenessCheckConfig
Returns a new instance of RequestedLivenessCheckConfig.
40 41 42 43 44 45 46 |
# 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 |
Instance Method Details
#as_json(*_args) ⇒ Object
48 49 50 51 52 53 |
# 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 |