Sha256: 77d2bf7cf4593e538545e4c312d9ceefb430424991df2e15d8adc9b34e8d9c0f
Contents?: true
Size: 799 Bytes
Versions: 1
Compression:
Stored size: 799 Bytes
Contents
# frozen_string_literal: true module Yoti module Sandbox module DocScan module Request class LivenessCheck < Check # # @param [CheckResult] result # @param [String] liveness_type # def initialize(result, liveness_type) raise(TypeError, "#{self.class} cannot be instantiated") if instance_of?(LivenessCheck) super(result) Validation.assert_is_a(String, liveness_type, 'liveness_type') @liveness_type = liveness_type end def to_json(*_args) as_json.to_json end def as_json(*_args) super.merge( liveness_type: @liveness_type ).compact end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yoti_sandbox-1.4.0 | lib/yoti_sandbox/doc_scan/request/check/liveness_check.rb |