Module: Rcb::ClassMethods

Included in:
Rcb
Defined in:
lib/rcb.rb

Instance Method Summary collapse

Instance Method Details

#for(tag, state_store: nil, open_condition: nil, reset_timeout_msec: nil) ⇒ Object



6
7
8
9
10
11
# File 'lib/rcb.rb', line 6

def for(tag, state_store: nil, open_condition: nil, reset_timeout_msec: nil)
  config = Rcb::Configurations.for(tag,
                                   open_condition: open_condition,
                                   reset_timeout_msec: reset_timeout_msec)
  Instance.new(config, state_store: state_store)
end