Sha256: 61b83f7c3ca32f09864f3bdf4c33408664b540decd165b3adc5340030a96b5f2

Contents?: true

Size: 619 Bytes

Versions: 5

Compression:

Stored size: 619 Bytes

Contents

# frozen_string_literal: true

module Yoti
  module DocScan
    module Session
      module Retrieve
        class DetailsResponse
          # @return [String]
          attr_reader :name

          # @return [String]
          attr_reader :value

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

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