Class: Totalizer::VanityMessage

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) ⇒ VanityMessage

Returns a new instance of VanityMessage.



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

def initialize metric, duration
  super
  self.description = Totalizer.descriptions.vanity
end