Class: ReporterFetcher

Inherits:
Object
  • Object
show all
Defined in:
app/core/reporter_fetcher.rb

Instance Method Summary collapse

Constructor Details

#initialize(settings = SettingsProvider.new, loader = ReporterLoader.new) ⇒ ReporterFetcher

Returns a new instance of ReporterFetcher.



25
26
27
# File 'app/core/reporter_fetcher.rb', line 25

def initialize(settings=SettingsProvider.new, loader=ReporterLoader.new)
  @settings, @loader = settings, loader
end

Instance Method Details

#active_reportersObject



29
30
31
32
33
34
35
36
# File 'app/core/reporter_fetcher.rb', line 29

def active_reporters
  reporters = @settings.active_reporter_ids.map do |rid|
    @loader.create_reporter(rid)
  end
  
  reporters << FeaturesReporter.new
  reporters << EventsReporter.new
end