Class: Yoti::Sandbox::DocScan::Request::CheckBuilder

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

Instance Method Summary collapse

Constructor Details

#initializeCheckBuilder

Returns a new instance of CheckBuilder.



30
31
32
# File 'lib/yoti_sandbox/doc_scan/request/check/check.rb', line 30

def initialize
  @breakdowns = []
end

Instance Method Details

#with_breakdown(breakdown) ⇒ self

Parameters:

Returns:

  • (self)


50
51
52
53
54
# File 'lib/yoti_sandbox/doc_scan/request/check/check.rb', line 50

def with_breakdown(breakdown)
  Validation.assert_is_a(Breakdown, breakdown, 'breakdown')
  @breakdowns.push(breakdown)
  self
end

#with_breakdowns(breakdowns) ⇒ self

Parameters:

Returns:

  • (self)


61
62
63
64
65
# File 'lib/yoti_sandbox/doc_scan/request/check/check.rb', line 61

def with_breakdowns(breakdowns)
  Validation.assert_is_a(Array, breakdowns, 'breakdown')
  @breakdowns = breakdowns
  self
end

#with_recommendation(recommendation) ⇒ self

Parameters:

Returns:

  • (self)


39
40
41
42
43
# File 'lib/yoti_sandbox/doc_scan/request/check/check.rb', line 39

def with_recommendation(recommendation)
  Validation.assert_is_a(Recommendation, recommendation, 'recommendation')
  @recommendation = recommendation
  self
end