Class: HealthCheck::Result
- Inherits:
-
Object
- Object
- HealthCheck::Result
- Defined in:
- lib/liquid/health_checks.rb
Instance Attribute Summary collapse
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
- #healthy? ⇒ Boolean
-
#initialize(healthy, message, exception) ⇒ Result
constructor
A new instance of Result.
- #to_s ⇒ Object
Constructor Details
#initialize(healthy, message, exception) ⇒ Result
Returns a new instance of Result.
8 9 10 11 12 |
# File 'lib/liquid/health_checks.rb', line 8 def initialize(healthy, , exception) @healthy = healthy @message = @exception = exception end |
Instance Attribute Details
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
6 7 8 |
# File 'lib/liquid/health_checks.rb', line 6 def exception @exception end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/liquid/health_checks.rb', line 5 def @message end |
Instance Method Details
#healthy? ⇒ Boolean
14 15 16 |
# File 'lib/liquid/health_checks.rb', line 14 def healthy? @healthy end |
#to_s ⇒ Object
18 19 20 |
# File 'lib/liquid/health_checks.rb', line 18 def to_s "Result(healthy=#{healthy?},message=#{.inspect},exception=#{exception.inspect})" end |