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.
-
#config ⇒ Object
Returns the value of attribute config.
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 |
#config ⇒ Object
Returns the value of attribute config.
5 6 7 |
# File 'lib/codespicuous/metrics_generator.rb', line 5 def config @config end |
Instance Method Details
#generate(config, commit_history) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/codespicuous/metrics_generator.rb', line 7 def generate(config, commit_history) @commit_history = commit_history @config = config generate_daniel generate_csv_files end |
#generate_csv_files ⇒ Object
19 20 21 22 |
# File 'lib/codespicuous/metrics_generator.rb', line 19 def generate_csv_files csv = MetricsGeneratorCsvFiles.new(@config, @commit_history) csv.generate end |
#generate_daniel ⇒ Object
14 15 16 17 |
# File 'lib/codespicuous/metrics_generator.rb', line 14 def generate_daniel daniel = MetricsGeneratorDaniel.new(@config, @commit_history) daniel.generate end |