Class: NumberMetric

Inherits:
Metric show all
Defined in:
lib/metrics/number_metric.rb

Instance Method Summary collapse

Methods inherited from Metric

#edit, #last_updated_at, #last_updated_by, #last_value

Instance Method Details

#convert(value) ⇒ Object



3
4
5
# File 'lib/metrics/number_metric.rb', line 3

def convert value
  value.to_f
end