Sha256: f505ec564786f1400c66cad3d9f60d20500f9cdd14d818551739ac46f3fad22e
Contents?: true
Size: 626 Bytes
Versions: 4
Compression:
Stored size: 626 Bytes
Contents
# frozen_string_literal: true module Yoti module DocScan module Session module Create class DocumentFilter # # @param [String] type # def initialize(type) raise(TypeError, "#{self.class} cannot be instantiated") if self.class == DocumentFilter Validation.assert_is_a(String, type, 'type') @type = type end def to_json(*_args) as_json.to_json end def as_json(*_args) { type: @type } end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems