Class: Yoti::DocScan::Session::Create::RequestedDocumentAuthenticityCheckConfig
- Inherits:
-
Object
- Object
- Yoti::DocScan::Session::Create::RequestedDocumentAuthenticityCheckConfig
- Defined in:
- lib/yoti/doc_scan/session/create/requested_document_authenticity_check.rb
Overview
The configuration applied when creating a RequestedDocumentAuthenticityCheck
Instance Method Summary collapse
- #as_json(*_args) ⇒ Object
-
#initialize(manual_check) ⇒ RequestedDocumentAuthenticityCheckConfig
constructor
A new instance of RequestedDocumentAuthenticityCheckConfig.
Constructor Details
#initialize(manual_check) ⇒ RequestedDocumentAuthenticityCheckConfig
Returns a new instance of RequestedDocumentAuthenticityCheckConfig.
36 37 38 39 |
# File 'lib/yoti/doc_scan/session/create/requested_document_authenticity_check.rb', line 36 def initialize(manual_check) Validation.assert_is_a(String, manual_check, 'manual_check', true) @manual_check = manual_check end |
Instance Method Details
#as_json(*_args) ⇒ Object
41 42 43 44 45 |
# File 'lib/yoti/doc_scan/session/create/requested_document_authenticity_check.rb', line 41 def as_json(*_args) { manual_check: @manual_check }.compact end |