Class: Yoti::Sandbox::DocScan::Request::ResponseConfigBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/yoti_sandbox/doc_scan/request/response_config.rb

Instance Method Summary collapse

Instance Method Details

#buildResponseConfig

Returns:



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

Parameters:

Returns:

  • (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

Parameters:

Returns:

  • (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