Class: IPVSLitmus::ForcedHealth
- Inherits:
-
Object
- Object
- IPVSLitmus::ForcedHealth
- Defined in:
- lib/ipvs_litmus/forced_health.rb
Instance Attribute Summary collapse
-
#summary ⇒ Object
readonly
Returns the value of attribute summary.
Instance Method Summary collapse
-
#initialize(health, summary) ⇒ ForcedHealth
constructor
A new instance of ForcedHealth.
- #ok? ⇒ Boolean
- #value ⇒ Object
Constructor Details
#initialize(health, summary) ⇒ ForcedHealth
Returns a new instance of ForcedHealth.
5 6 7 8 |
# File 'lib/ipvs_litmus/forced_health.rb', line 5 def initialize(health, summary) @health = health @summary = summary end |
Instance Attribute Details
#summary ⇒ Object (readonly)
Returns the value of attribute summary.
3 4 5 |
# File 'lib/ipvs_litmus/forced_health.rb', line 3 def summary @summary end |
Instance Method Details
#ok? ⇒ Boolean
14 15 16 |
# File 'lib/ipvs_litmus/forced_health.rb', line 14 def ok? @health > 0 end |
#value ⇒ Object
10 11 12 |
# File 'lib/ipvs_litmus/forced_health.rb', line 10 def value @health end |