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