Class: Console::Event::Exit

Inherits:
Metric show all
Defined in:
lib/console/event/measure.rb

Instance Attribute Summary

Attributes inherited from Metric

#name, #tags, #value

Instance Method Summary collapse

Methods inherited from Metric

[], #format, #initialize, #to_h

Methods inherited from Generic

#as_json, #format, register, #to_h

Constructor Details

This class inherits a constructor from Console::Event::Metric

Instance Method Details

#value_stringObject



37
38
39
# File 'lib/console/event/measure.rb', line 37

def value_string
	"#{@name} took #{Clock.formatted_duration(@value)}"
end