Class: MetricsGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/codespicuous/metrics_generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#commit_historyObject

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_csvObject



18
19
20
21
# File 'lib/codespicuous/metrics_generator.rb', line 18

def generate_csv
  csv = MetricsGeneratorCsv.new(@commit_history)
  csv.generate
end

#generate_danielObject



13
14
15
16
# File 'lib/codespicuous/metrics_generator.rb', line 13

def generate_daniel
  daniel = MetricsGeneratorDaniel.new(@commit_history)
  daniel.generate
end