Class: ReporterFetcher
- Inherits:
-
Object
- Object
- ReporterFetcher
- Defined in:
- app/core/reporter_fetcher.rb
Instance Method Summary collapse
- #active_reporters ⇒ Object
-
#initialize(settings = SettingsProvider.new, loader = ReporterLoader.new) ⇒ ReporterFetcher
constructor
A new instance of ReporterFetcher.
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_reporters ⇒ Object
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 |