Class: Imagga::ImageInfoBase

Inherits:
Object
  • Object
show all
Defined in:
lib/imagga/image.rb

Direct Known Subclasses

CropInfo, ImageColor, ImageCrop, ImageInfo, RankSimilarity

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ ImageInfoBase

Returns a new instance of ImageInfoBase.



15
16
17
# File 'lib/imagga/image.rb', line 15

def initialize(opts={})
  self.class.fields.each { |field| send("#{field}=", opts[field]) }
end