Module: Freno::Client::Preconditions

Included in:
Request
Defined in:
lib/freno/client/preconditions.rb

Defined Under Namespace

Classes: Checker

Constant Summary collapse

PreconditionNotMet =
Class.new(ArgumentError)

Class Method Summary collapse

Class Method Details

.check(&block) ⇒ Object



28
29
30
31
32
# File 'lib/freno/client/preconditions.rb', line 28

def check(&block)
  checker = Checker.new
  checker.instance_eval(&block)
  checker.report
end