Class: Totalizer::VanityMessage
- Inherits:
-
MetricMessage
- Object
- Message
- MetricMessage
- Totalizer::VanityMessage
- Defined in:
- lib/totalizer/message.rb
Instance Attribute Summary
Attributes inherited from Message
#description, #duration, #text
Instance Method Summary collapse
-
#initialize(metric, duration) ⇒ VanityMessage
constructor
A new instance of VanityMessage.
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 |