Sha256: 2fe0f5524d8839cba4ae927d42b0c317ba295b65dd27689f0fdeb6e24e5aeabb

Contents?: true

Size: 599 Bytes

Versions: 5

Compression:

Stored size: 599 Bytes

Contents

# frozen_string_literal: true

module Yoti
  module DocScan
    module Session
      module Retrieve
        class GeneratedCheckResponse
          # @return [String]
          attr_reader :id

          # @return [String]
          attr_reader :type

          #
          # @param [Hash] check
          #
          def initialize(check)
            Validation.assert_is_a(String, check['id'], 'id', true)
            @id = check['id']

            Validation.assert_is_a(String, check['type'], 'type', true)
            @type = check['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/generated_check_response.rb
yoti-1.9.0 lib/yoti/doc_scan/session/retrieve/generated_check_response.rb
yoti-1.8.0 lib/yoti/doc_scan/session/retrieve/generated_check_response.rb
yoti-1.7.1 lib/yoti/doc_scan/session/retrieve/generated_check_response.rb
yoti-1.7.0 lib/yoti/doc_scan/session/retrieve/generated_check_response.rb