Class: MetricFu::RcovGrapher
- Defined in:
- lib/graphs/rcov_grapher.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Grapher
Grapher::BLUFF_DEFAULT_OPTIONS, Grapher::BLUFF_GRAPH_SIZE
Constants included from GchartGrapher
GchartGrapher::COLORS, GchartGrapher::GCHART_GRAPH_SIZE, GchartGrapher::NUMBER_OF_TICKS
Instance Attribute Summary collapse
-
#rcov_percent ⇒ Object
Returns the value of attribute rcov_percent.
Attributes inherited from Grapher
Instance Method Summary collapse
- #get_metrics(metrics, date) ⇒ Object
-
#initialize ⇒ RcovGrapher
constructor
A new instance of RcovGrapher.
Methods inherited from Grapher
Methods included from GchartGrapher
Constructor Details
#initialize ⇒ RcovGrapher
Returns a new instance of RcovGrapher.
7 8 9 10 |
# File 'lib/graphs/rcov_grapher.rb', line 7 def initialize super @rcov_percent = [] end |
Instance Attribute Details
#rcov_percent ⇒ Object
Returns the value of attribute rcov_percent.
5 6 7 |
# File 'lib/graphs/rcov_grapher.rb', line 5 def rcov_percent @rcov_percent end |
Instance Method Details
#get_metrics(metrics, date) ⇒ Object
12 13 14 15 |
# File 'lib/graphs/rcov_grapher.rb', line 12 def get_metrics(metrics, date) super @rcov_percent.push(metrics[:rcov][:global_percent_run]) end |