Class: Yoti::DocScan::Session::Create::DocumentRestrictionBuilder
- Inherits:
-
Object
- Object
- Yoti::DocScan::Session::Create::DocumentRestrictionBuilder
- Defined in:
- lib/yoti/doc_scan/session/create/document_restrictions_filter.rb
Instance Method Summary collapse
- #build ⇒ DocumentRestriction
- #with_countries(country_codes) ⇒ self
- #with_document_types(document_types) ⇒ self
Instance Method Details
#build ⇒ DocumentRestriction
133 134 135 |
# 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) ⇒ self
125 126 127 128 |
# 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) ⇒ self
115 116 117 118 |
# 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 |