class Yoti::DocScan::Session::Create::DocumentFilter
Public Class Methods
new(type)
click to toggle source
@param [String] type
# File lib/yoti/doc_scan/session/create/document_filter.rb, line 11 def initialize(type) raise(TypeError, "#{self.class} cannot be instantiated") if instance_of?(DocumentFilter) Validation.assert_is_a(String, type, 'type') @type = type end
Public Instance Methods
as_json(*_args)
click to toggle source
# File lib/yoti/doc_scan/session/create/document_filter.rb, line 22 def as_json(*_args) { type: @type } end
to_json(*_args)
click to toggle source
# File lib/yoti/doc_scan/session/create/document_filter.rb, line 18 def to_json(*_args) as_json.to_json end