Sha256: 416fa35f55476063e52b492cc76f0280f951f95d8e97b5ed0febcea620bac6e4

Contents?: true

Size: 266 Bytes

Versions: 4

Compression:

Stored size: 266 Bytes

Contents

# frozen_string_literal: true

module Yoti
  class Image < Media
    def initialize(content, mime_type)
      raise(TypeError, "#{self.class} is an abstract class, so cannot be instantiated") if self.class == Image

      super(content, mime_type)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
yoti-1.9.0 lib/yoti/data_type/image.rb
yoti-1.8.0 lib/yoti/data_type/image.rb
yoti-1.7.1 lib/yoti/data_type/image.rb
yoti-1.7.0 lib/yoti/data_type/image.rb