Class: Totalizer::ActivityMessage

Inherits:
MetricMessage show all
Defined in:
lib/totalizer/message.rb

Instance Attribute Summary

Attributes inherited from Message

#description, #duration, #text

Instance Method Summary collapse

Methods inherited from Message

#percentage_string, #period_string

Constructor Details

#initialize(metric, duration) ⇒ ActivityMessage



33
34
35
36
# File 'lib/totalizer/message.rb', line 33

def initialize metric, duration
  super
  self.description = "Did key activity this period (with rate of change)"
end