Module: Ossert::Stats
- Defined in:
- lib/ossert/stats.rb,
lib/ossert/stats/base.rb,
lib/ossert/stats/agility_total.rb,
lib/ossert/stats/agility_quarter.rb,
lib/ossert/stats/community_total.rb,
lib/ossert/stats/community_quarter.rb
Defined Under Namespace
Classes: AgilityQuarter, AgilityTotal, Base, CommunityQuarter, CommunityTotal
Constant Summary
collapse
- PER_QUARTER_TOO_LONG =
(5.years / 1.day).to_i
- PER_YEAR_TOO_LONG =
PER_QUARTER_TOO_LONG / 4
Class Method Summary
collapse
Class Method Details
.guess_section_by_metric(metric) ⇒ Object
13
14
15
16
17
18
19
20
21
|
# File 'lib/ossert/stats.rb', line 13
def guess_section_by_metric(metric)
found_section = :not_found
section_by_metric.each do |section, metrics|
next unless metrics.include? metric
found_section = section
break
end
found_section
end
|
.section_by_metric ⇒ Object