Module: ActiveEncode::EngineAdapter::ClassMethods

Defined in:
lib/active_encode/engine_adapter.rb

Overview

Includes the setter method for changing the active engine adapter.

Instance Method Summary collapse

Instance Method Details

#engine_adapterObject


18
19
20
# File 'lib/active_encode/engine_adapter.rb', line 18

def engine_adapter
  _engine_adapter
end

#engine_adapter=(name_or_adapter_or_class) ⇒ Object

Specify the backend engine provider. The default engine adapter is the :inline engine. See QueueAdapters for more information.


25
26
27
# File 'lib/active_encode/engine_adapter.rb', line 25

def engine_adapter=(name_or_adapter_or_class)
  self._engine_adapter = interpret_adapter(name_or_adapter_or_class)
end