Sha256: e57c09f456298237b3a219ab8f0f6bf4f317f7e81fc1967c2d12531d32c10db4

Contents?: true

Size: 591 Bytes

Versions: 5

Compression:

Stored size: 591 Bytes

Contents

# frozen_string_literal: true

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

          # @return [String]
          attr_reader :type

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

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