Class: LightService::Organizer::WithReducerFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/light-service/organizer/with_reducer_factory.rb

Class Method Summary collapse

Class Method Details

.make(monitored_organizer) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/light-service/organizer/with_reducer_factory.rb', line 4

def self.make(monitored_organizer)
  if LightService::Configuration.logger.nil?
    WithReducer.new
  else
    WithReducerLogDecorator.new(monitored_organizer, WithReducer.new)
  end
end