Class: Rcb::DSL::OpenConditionBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/rcb/configuration.rb

Instance Method Summary collapse

Constructor Details

#initializeOpenConditionBuilder

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

#buildObject



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