Class: Yoti::Sandbox::DocScan::Request::CheckReports
- Inherits:
-
Object
- Object
- Yoti::Sandbox::DocScan::Request::CheckReports
- Defined in:
- lib/yoti_sandbox/doc_scan/request/check_reports.rb
Class Method Summary collapse
Instance Method Summary collapse
- #as_json(*_args) ⇒ Object
-
#initialize(document_text_data_checks, document_authenticity_checks, liveness_checks, document_face_match_checks, async_report_delay) ⇒ CheckReports
constructor
A new instance of CheckReports.
- #to_json(*_args) ⇒ Object
Constructor Details
#initialize(document_text_data_checks, document_authenticity_checks, liveness_checks, document_face_match_checks, async_report_delay) ⇒ CheckReports
Returns a new instance of CheckReports.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/yoti_sandbox/doc_scan/request/check_reports.rb', line 15 def initialize( document_text_data_checks, document_authenticity_checks, liveness_checks, document_face_match_checks, async_report_delay ) Validation.assert_is_a(Array, document_text_data_checks, 'document_text_data_checks') @document_text_data_checks = document_text_data_checks Validation.assert_is_a(Array, document_authenticity_checks, 'document_authenticity_checks') @document_authenticity_checks = document_authenticity_checks Validation.assert_is_a(Array, liveness_checks, 'liveness_checks') @liveness_checks = liveness_checks Validation.assert_is_a(Array, document_face_match_checks, 'document_face_match_checks') @document_face_match_checks = document_face_match_checks Validation.assert_is_a(Integer, async_report_delay, 'async_report_delay', true) @async_report_delay = async_report_delay end |
Class Method Details
.builder ⇒ Object
38 39 40 |
# File 'lib/yoti_sandbox/doc_scan/request/check_reports.rb', line 38 def self.builder CheckReportsBuilder.new end |
Instance Method Details
#as_json(*_args) ⇒ Object
46 47 48 49 50 51 52 53 54 |
# File 'lib/yoti_sandbox/doc_scan/request/check_reports.rb', line 46 def as_json(*_args) { Yoti::DocScan::Constants::ID_DOCUMENT_TEXT_DATA_CHECK => @document_text_data_checks, Yoti::DocScan::Constants::ID_DOCUMENT_AUTHENTICITY => @document_authenticity_checks, Yoti::DocScan::Constants::ID_DOCUMENT_FACE_MATCH => @document_face_match_checks, Yoti::DocScan::Constants::LIVENESS => @liveness_checks, :async_report_delay => @async_report_delay } end |
#to_json(*_args) ⇒ Object
42 43 44 |
# File 'lib/yoti_sandbox/doc_scan/request/check_reports.rb', line 42 def to_json(*_args) as_json.to_json end |