Class: Simple::Metrics::Health

Inherits:
Object
  • Object
show all
Defined in:
lib/simple/metrics/health.rb

Direct Known Subclasses

HEALTHY, UNHEALTHY, WARNING

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ Health

Returns a new instance of Health.



6
7
8
# File 'lib/simple/metrics/health.rb', line 6

def initialize(message=nil)
  @message = message
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



4
5
6
# File 'lib/simple/metrics/health.rb', line 4

def message
  @message
end