Method: AGIState#initialize

Defined in:
lib/AGIState.rb

#initialize(conf = {}) ⇒ AGIState

Returns a new instance of AGIState.



41
42
43
44
45
# File 'lib/AGIState.rb', line 41

def initialize(conf={})
  @failures = 0
  @failure_threshold = conf[:threshold] || @@failure_threshold
  @failure_threshold = conf[:failure_threshold] || @failure_threshold
end