Class: Fiveruns::Dash::TimeMetric

Inherits:
Metric show all
Defined in:
lib/fiveruns/dash/metric.rb

Instance Attribute Summary

Attributes inherited from Metric

#description, #help_text, #name, #options, #recipe

Instance Method Summary collapse

Methods inherited from Metric

#==, #abstract?, #calculate, #data, #find_context_with, #info, #key, #virtual?

Methods included from Typable

included

Constructor Details

#initialize(*args) ⇒ TimeMetric

Returns a new instance of TimeMetric.



243
244
245
246
247
# File 'lib/fiveruns/dash/metric.rb', line 243

def initialize(*args)
  super(*args)
  reset
  install_hook
end

Instance Method Details

#resetObject



249
250
251
252
253
# File 'lib/fiveruns/dash/metric.rb', line 249

def reset
  ::Fiveruns::Dash.sync do
    @data = blank_data
  end
end