class RemoveBg::Configuration
Attributes
api_key[RW]
auto_upgrade_png_to_zip[RW]
image_processor[RW]
Public Class Methods
configuration()
click to toggle source
# File lib/remove_bg/configuration.rb, line 7 def self.configuration @configuration ||= Configuration.new.tap do |config| config.image_processor = ImageComposer.detect_image_processor # Upgrade to ZIP where possible to save bandwith config.auto_upgrade_png_to_zip = true end end
reset()
click to toggle source
# File lib/remove_bg/configuration.rb, line 16 def self.reset @configuration = nil end
Public Instance Methods
can_process_images?()
click to toggle source
# File lib/remove_bg/configuration.rb, line 20 def can_process_images? !image_processor.nil? end