Class: IPVSLitmus::ForcedHealth

Inherits:
Object
  • Object
show all
Defined in:
lib/ipvs_litmus/forced_health.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#summaryObject (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

Returns:

  • (Boolean)


14
15
16
# File 'lib/ipvs_litmus/forced_health.rb', line 14

def ok?
  @health > 0
end

#valueObject



10
11
12
# File 'lib/ipvs_litmus/forced_health.rb', line 10

def value
  @health
end