Class: MetricsSatellite::Summarizer

Inherits:
Object
  • Object
show all
Includes:
Filer
Defined in:
lib/metrics_satellite/summarizers/summarizer.rb

Defined Under Namespace

Classes: ReportNotFoundError

Constant Summary

Constants included from Filer

Filer::EXT

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Summarizer

Returns a new instance of Summarizer.



11
12
13
# File 'lib/metrics_satellite/summarizers/summarizer.rb', line 11

def initialize(options = {})
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/metrics_satellite/summarizers/summarizer.rb', line 5

def options
  @options
end

Class Method Details

.summarize(options = {}) ⇒ Object



7
8
9
# File 'lib/metrics_satellite/summarizers/summarizer.rb', line 7

def self.summarize(options = {})
  new(options).summarize
end

Instance Method Details

#summarizeObject



15
16
17
18
# File 'lib/metrics_satellite/summarizers/summarizer.rb', line 15

def summarize
  validate_report_existence
  create_merged_summaries
end