Class: Codescout::ChurnStats

Inherits:
Object
  • Object
show all
Defined in:
lib/codescout/churn_stats.rb

Constant Summary collapse

OPTIONS =
{
  minimum_churn_count: 1,
  start_date: nil
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(analyzer) ⇒ ChurnStats

Returns a new instance of ChurnStats.



12
13
14
15
16
17
18
# File 'lib/codescout/churn_stats.rb', line 12

def initialize(analyzer)
  @analyzer = analyzer
  @files    = {}

  generate_report
  collect_results
end

Instance Attribute Details

#filesObject (readonly)

Returns the value of attribute files.



10
11
12
# File 'lib/codescout/churn_stats.rb', line 10

def files
  @files
end