Class: Rcb::DSL::OpenConditionBuilder
- Inherits:
-
Object
- Object
- Rcb::DSL::OpenConditionBuilder
- Defined in:
- lib/rcb/configuration.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize ⇒ OpenConditionBuilder
constructor
A new instance of OpenConditionBuilder.
- #max_failure_count(count) ⇒ Object
- #window_msec(msec) ⇒ Object
Constructor Details
#initialize ⇒ OpenConditionBuilder
Returns a new instance of OpenConditionBuilder.
33 34 35 36 |
# File 'lib/rcb/configuration.rb', line 33 def initialize @max_failure_count = nil @window_msec = nil end |
Instance Method Details
#build ⇒ Object
46 47 48 |
# File 'lib/rcb/configuration.rb', line 46 def build Rcb::OpenCondition.new(@max_failure_count, @window_msec) end |
#max_failure_count(count) ⇒ Object
38 39 40 |
# File 'lib/rcb/configuration.rb', line 38 def max_failure_count(count) @max_failure_count = count end |
#window_msec(msec) ⇒ Object
42 43 44 |
# File 'lib/rcb/configuration.rb', line 42 def window_msec(msec) @window_msec = msec end |