Class: Yoti::Image
Instance Attribute Summary
Attributes inherited from Media
Instance Method Summary collapse
-
#initialize(content, mime_type) ⇒ Image
constructor
A new instance of Image.
Methods inherited from Media
Constructor Details
#initialize(content, mime_type) ⇒ Image
Returns a new instance of Image.
5 6 7 8 9 |
# File 'lib/yoti/data_type/image.rb', line 5 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 |