Class: Yoti::Sandbox::DocScan::Request::ResponseConfigBuilder
- Inherits:
-
Object
- Object
- Yoti::Sandbox::DocScan::Request::ResponseConfigBuilder
- Defined in:
- lib/yoti_sandbox/doc_scan/request/response_config.rb
Instance Method Summary collapse
- #build ⇒ ResponseConfig
- #with_check_reports(check_reports) ⇒ self
- #with_task_results(task_results) ⇒ self
Instance Method Details
#build ⇒ ResponseConfig
65 66 67 68 69 70 |
# File 'lib/yoti_sandbox/doc_scan/request/response_config.rb', line 65 def build ResponseConfig.new( @task_results, @check_reports ) end |
#with_check_reports(check_reports) ⇒ self
56 57 58 59 60 |
# File 'lib/yoti_sandbox/doc_scan/request/response_config.rb', line 56 def with_check_reports(check_reports) Validation.assert_is_a(CheckReports, check_reports, 'check_reports') @check_reports = check_reports self end |
#with_task_results(task_results) ⇒ self
45 46 47 48 49 |
# File 'lib/yoti_sandbox/doc_scan/request/response_config.rb', line 45 def with_task_results(task_results) Validation.assert_is_a(TaskResults, task_results, 'task_results') @task_results = task_results self end |