Sha256: 6289aada1cd7eaf789f80bdcca3ef5c83c6578f4a8e04950338aa5bbd784b4e8

Contents?: true

Size: 551 Bytes

Versions: 5

Compression:

Stored size: 551 Bytes

Contents

# frozen_string_literal: true

module Yoti
  module DocScan
    module Session
      module Retrieve
        class LivenessResourceResponse < ResourceResponse
          # @return [String]
          attr_reader :liveness_type

          #
          # @param [Hash] resource
          #
          def initialize(resource)
            super(resource)

            Validation.assert_is_a(String, resource['liveness_type'], 'liveness_type', true)
            @liveness_type = resource['liveness_type']
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yoti-1.10.0 lib/yoti/doc_scan/session/retrieve/liveness_resource_response.rb
yoti-1.9.0 lib/yoti/doc_scan/session/retrieve/liveness_resource_response.rb
yoti-1.8.0 lib/yoti/doc_scan/session/retrieve/liveness_resource_response.rb
yoti-1.7.1 lib/yoti/doc_scan/session/retrieve/liveness_resource_response.rb
yoti-1.7.0 lib/yoti/doc_scan/session/retrieve/liveness_resource_response.rb