Class: CacheReporterFetcher

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

Instance Method Summary collapse

Constructor Details

#initialize(fetcher, settings = SettingsProvider.new) ⇒ CacheReporterFetcher

Returns a new instance of CacheReporterFetcher.



23
24
25
# File 'app/core/cache_reporter_fetcher.rb', line 23

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

Instance Method Details

#active_reportersObject



27
28
29
30
31
# File 'app/core/cache_reporter_fetcher.rb', line 27

def active_reporters
  @fetcher.active_reporters.map do |reporter|
    reporter.cache? ? CacheReporter.new(reporter, @settings) : reporter
  end
end