Class: Imagga::ImageColor

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ImageInfoBase

#initialize

Constructor Details

This class inherits a constructor from Imagga::ImageInfoBase

Class Method Details

.fieldsObject



46
47
48
# File 'lib/imagga/image.rb', line 46

def self.fields
  %w(percent r g b html_code closest_palette_color closest_palette_color_parent closest_palette_distance)
end

Instance Method Details

#percent=(value) ⇒ Object



58
59
60
# File 'lib/imagga/image.rb', line 58

def percent=(value)
  @percent = value.to_f
end