Class: MetricsGenerator
- Inherits:
-
Object
- Object
- MetricsGenerator
- Defined in:
- lib/codespicuous/metrics_generator.rb
Instance Attribute Summary collapse
-
#commit_history ⇒ Object
Returns the value of attribute commit_history.
Instance Method Summary collapse
Instance Attribute Details
#commit_history ⇒ Object
Returns the value of attribute commit_history.
5 6 7 |
# File 'lib/codespicuous/metrics_generator.rb', line 5 def commit_history @commit_history end |
Instance Method Details
#generate(commit_history) ⇒ Object
7 8 9 10 11 |
# File 'lib/codespicuous/metrics_generator.rb', line 7 def generate(commit_history) @commit_history = commit_history generate_daniel generate_csv end |
#generate_csv ⇒ Object
18 19 20 21 |
# File 'lib/codespicuous/metrics_generator.rb', line 18 def generate_csv csv = MetricsGeneratorCsv.new(@commit_history) csv.generate end |
#generate_daniel ⇒ Object
13 14 15 16 |
# File 'lib/codespicuous/metrics_generator.rb', line 13 def generate_daniel daniel = MetricsGeneratorDaniel.new(@commit_history) daniel.generate end |