Sha256: 07cce412a2abb4e16a36fe2b0f0fc0b94482ad352cfddb802b245f68b16f8452
Contents?: true
Size: 630 Bytes
Versions: 4
Compression:
Stored size: 630 Bytes
Contents
# frozen_string_literal: true module Yoti module DocScan module Session module Create class RequiredDocument # # @param [String] type # def initialize(type) raise(TypeError, "#{self.class} cannot be instantiated") if self.class == RequiredDocument 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