Class: MetricFu::MetricChurn
- Inherits:
-
Metric
- Object
- Metric
- MetricFu::MetricChurn
show all
- Defined in:
- lib/metric_fu/metrics/churn/metric.rb
Instance Attribute Summary
Attributes inherited from Metric
#activated, #enabled
Instance Method Summary
collapse
Methods inherited from Metric
#configured_run_options, #default_run_args, enabled_metrics, #gem_name, get_metric, #initialize, metrics, #run, #run_external, #run_options
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class MetricFu::Metric
Instance Method Details
#activate ⇒ Object
24
25
26
27
|
# File 'lib/metric_fu/metrics/churn/metric.rb', line 24
def activate
activate_library("churn/calculator")
super
end
|
#default_run_options ⇒ Object
7
8
9
10
11
12
13
14
|
# File 'lib/metric_fu/metrics/churn/metric.rb', line 7
def default_run_options
{
start_date: '"1 year ago"',
minimum_churn_count: 10,
ignore_files: [],
data_directory: MetricFu::Io::FileSystem.scratch_directory(name)
}
end
|
#enable ⇒ Object
20
21
22
|
# File 'lib/metric_fu/metrics/churn/metric.rb', line 20
def enable
super
end
|
#has_graph? ⇒ Boolean
16
17
18
|
# File 'lib/metric_fu/metrics/churn/metric.rb', line 16
def has_graph?
false
end
|
#name ⇒ Object
3
4
5
|
# File 'lib/metric_fu/metrics/churn/metric.rb', line 3
def name
:churn
end
|