class Yoti::DocScan::Session::Create::DocumentRestrictionBuilder
Public Instance Methods
build()
click to toggle source
@return [DocumentRestriction]
# File lib/yoti/doc_scan/session/create/document_restrictions_filter.rb, line 133 def build DocumentRestriction.new(@country_codes, @document_types) end
with_countries(country_codes)
click to toggle source
@param [Array<String>] country_codes
@return [self]
# File lib/yoti/doc_scan/session/create/document_restrictions_filter.rb, line 125 def with_countries(country_codes) @country_codes = country_codes self end
with_document_types(document_types)
click to toggle source
@param [Array<String>] document_types
@return [self]
# File lib/yoti/doc_scan/session/create/document_restrictions_filter.rb, line 115 def with_document_types(document_types) @document_types = document_types self end